Answer the question
In order to leave comments, you need to log in
Wildcard and real subdomains?
Hello Habr.
Please tell me how to set up wildcard hosting in Apache so that it does not “grab” existing subdomains.
Example:
There is a domain test.
It has a real.test subdomain.
When requesting any subdomain other than real.test, the request is handled by the main domain (test)
Answer the question
In order to leave comments, you need to log in
Swap the definitions of virtual and real domains in the config.
Or rename the files, if they are included, to change the sequence of their execution.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question