I have a domain I call Homenet.com and have two subdomains: wiki.homenet.com and intranet.homenet.com. For some reason, no matter what I type in it always shows content from intranet.homenet.com. My Virtual Host file is below:
# # Use name-based virtual hosting. # NameVirtualHost *:80 <VirtualHost *:80> ServerName intranet.homenet.com DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" </VirtualHost> <VirtualHost *:80> ServerName wiki.homenet.com DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/wiki" </VirtualHost>
I got it to work once on by browsing to wiki.homenet.com from the same server that was running both my DNS and Apache (Windows XP), but then I made a change and restarted Apache and it stopped working (even after I reversed the change). I've checked other anewsers on this board and my vhost file seems to be correct...just nothing it working. Any ideas? Thanks!
PS> I have a DNS server running that directs wiki.homenet.com and intranet.homenet.com to my Apache server. Apache and DNS both reside on the same server (192.168.1.149).