S
S
Spegulo2010-11-10 07:17:59
Apache HTTP Server
Spegulo, 2010-11-10 07:17:59

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

2 answer(s)
A
Atrax, 2010-11-10
@Spegulo

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.

S
Spegulo, 2010-11-10
@Spegulo

Thanks, it helped, though I had to strain the hoster for this :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question