4

Apache problem

view full story
linux-howto

http://forums.fedoraforum.org – Hey Guys, I'm having a little problem with the config of apache. For a school project I need to host 2 websites with apache. My DNS is ready to go, I tested it and it works perfectly. Below are the settings in my httpd.conf wich is giving me some problems: Code: NameVirtualHost 10.1.11.20:80 # # # <VirtualHost 10.1.11.20:80>         DocumentRoot "/var/www/html" </VirtualHost> <VirtualHost server.Domain1.local:80>         DocumentRoot "/var/www/html/domain1/"         ServerName server.Domain1.local </VirtualHost> <VirtualHost server.Domain2.intra:80>         DocumentRoot "/var/www/html/domain2/"         ServerName server.Domain2.intra:80 </VirtualHost> My server is 10.1.11.20. The problem is when I login to my windows XP workstation and go to www.Domain1.local (www is CNAMED correctly in DNS and tested) I dont get forwarded to /html/domain1, but I get forwarded to /html/, where I can see the 2 directory's domain1 and domain2. I can open them both and then I get forwarded to the index pages wich are included in the directory's. Is there something wrong with the settings listed above? I dont get it! :P Thanks in advance! (HowTos)