Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question