S
S
Sergey Sova2014-12-17 00:02:41
PHP
Sergey Sova, 2014-12-17 00:02:41

How to set default vhost for all domains?

I have domains: site.net, dev.site.net, editor.site.net, beta.editor.site.net
Each host has its own .conf file:
pastebin.com/FszxJhRZ
Everything is the same for all domains. There is a default config that displays a 404 error:
pastebin.com/LigHEVv6
In the DNS settings, I have an entry like *.site.net 11:22:33:44
A request like r.site.net falls on one of the domains, not the default .
If I remove all configs except default.conf from the sites-enabled directory, then it works as expected on default/
And if I add at least one, it immediately displays on any request editor.site.net
I don’t understand what the problem is

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
neolink, 2014-12-17
@LestaD

listen 80 default_server;
listen 443 default_server ssl;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question