I can only see the first website alphabetically
Posted
by
Victor
on Server Fault
See other posts from Server Fault
or by Victor
Published on 2012-10-26T20:10:35Z
Indexed on
2012/10/26
23:04 UTC
Read the original article
Hit count: 238
I have 3 subdomains websites. Those are subdomain1.mydomain.com, subdomain2.mydomain.com, subdomain3.mydomain.com. I have point these to the external IP address. bind is ok, dig is onerror, Apache2 reload ok
1.) If I set the following, I can only see the first one alphabetically.
NameVirtualHost *:80
<VirtualHost *:80>
ServerName subdomain1.mydomain.com
...
<VirtualHost *:80>
ServerName subdomain2.mydomain.com
...
2.) If I set the following, I get file not found. Apache2 reload ok.
NameVirtualHost mydomain.com:80
<VirtualHost mydomain.com:80>
ServerName subdomain1.mydomain.com
...
<VirtualHost mydomain.com:80>
ServerName subdomain2.mydomain.com
Please Help! What else should I do.
© Server Fault or respective owner