When I use the following code:
ServerName subone.domain.tld
DocumentRoot /var/www/subdomain/subone/
ServerName subtwo.domain.tld
DocumentRoot /var/www/subdomain/subtwo/
Every query goes to /var/www/subdomain/subone. Including:
domain.tld, subone.domain.tld, subtwo.domain.tld, ...
When I add a "NameVirtualHost *" to the beginning of the file, everything goes to /var/www
What am I doing wrong?
Answer
I think you are missing the port numbers maybe?
e.g.
NameVirtualHost *:80
and
VirtualHost *:80
Comments
Post a Comment