As of now I have 3 domain names. My main one is resolving fine and I can access my web page easily. The other 2 however will not be accessed. I have my main page as the first vhost on the httpd.cong file and the other 2 in the exact same syntax and format following next in line. I have also pinged each vhost and I get a response from all of them.
Anyone have any ideas why my hosts would seem to be resolving fine but the page still will not load? I thought maybe the TTL was set too low in my browser and the pages were taking longer to resolve but this isnt the case because my main page URL is being resolved on the same DNS as my 2 subhosts are and the main loads fine.
Here is what my vhosts look like:
- Code: Select all
NameVirtualHost 192.168.0.4
<VirtualHost *>
# primary host
ServerAdmin [email]ziation@yahoo.com[/email]
DocumentRoot /home/master/webroot
ServerName ******
</VirtualHost>
<VirtualHost *>
# Main Host
ServerAdmin ziation@yahoo.com
DocumentRoot /home/master/webroot/mainhost
ServerName www.mainhost.com
</VirtualHost>
<VirtualHost *>
# First Sub Host
ServerAdmin ziation@yahoo.com
DocumentRoot /home/master/webroot/firstsubhost
ServerName www.firstsubhost.mainhost.com
<VirtualHost *>
# Second Sub Host
ServerAdmin ziation@yahoo.com
DocumentRoot /home/master/webroot/secondsubhost
ServerName www.secondsubhost.mainhost.com
</VirtualHost>
Each subhost has the main host in it's URL. This is the very nature of a subhost (in case that confused you).
But all looks well to me. The first vhost I have up top is a vhost I added for folks with old browser or browsers that do not support name based vhost re-direction so that should not have any bearing on my problem at hand.
If anyone has any experience with this please hook me up!!!
Thanx...
Ok here are the warnings I am getting when I start my web server with the -S option to verify my vhost setup:
- Code: Select all
[Tue May 27 18:02:15 2003] [alert] httpd: Could not determine the server's fully qualified domain name, using 192.168.0.4 for ServerName
[Tue May 27 18:02:15 2003] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Tue May 27 18:02:15 2003] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Tue May 27 18:02:15 2003] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Tue May 27 18:02:15 2003] [warn] NameVirtualHost 192.168.0.4:80 has no VirtualHosts
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
Overlap on port 80?? I know this does not mean that I cannot run multiple hosts on the same port does it?


