timhost Posted December 6, 2006 Report Share Posted December 6, 2006 Hello, virtual host is not working. I get always content starting from /www/ host file is also ok. What I see is content always h t t p ://site2 === h t t p://site1--------------- Well it was late !!!! RIC any ideas, it is windows xp home italian. Can I do some debugging to see what is wrong?Admin Virtual Host is working i.e. setting up everything, only apache strikes. NameVirtualHost * Listen is set to port 80Userdir is /www/##########VIRTUAL HOST SETUP########### site1<VirtualHost *>ServerName site1.devDocumentRoot /www/</VirtualHost> # site1<VirtualHost *>ServerName site2DocumentRoot /www/site2</VirtualHost> thankstim Quote Link to comment Share on other sites More sharing options...
Ric Posted December 6, 2006 Report Share Posted December 6, 2006 It looks as if you have not set the hosts file: Open the file:hosts Located: C:\WINDOWS\system32\drivers\etc\ add these lines 127.0.0.1 site1.dev 127.0.0.1 site2 Check out this page for more details http://center.uniformserver.com/virtual_ho...ual_host_1.html All the best Quote Link to comment Share on other sites More sharing options...
timhost Posted December 7, 2006 Author Report Share Posted December 7, 2006 It looks as if you have not set the hosts file: Open the file:hosts Located: C:\WINDOWS\system32\drivers\etc\ add these lines127.0.0.1 site1.dev 127.0.0.1 site2 Check out this page for more details http://center.uniformserver.com/virtual_ho...ual_host_1.htmlAll the best Stays above "host file is also ok" meaning 127.0.0.1 site1.dev 127.0.0.1 site2 are also set. That is my problem everything seems beeing OK, but not working. tim Quote Link to comment Share on other sites More sharing options...
AlleyKat Posted December 9, 2006 Report Share Posted December 9, 2006 tim, try changingDocumentRoot /www/site2toDocumentRoot /www/site2/ Quote Link to comment Share on other sites More sharing options...
timhost Posted December 11, 2006 Author Report Share Posted December 11, 2006 tim, try changingDocumentRoot /www/site2toDocumentRoot /www/site2/ tried that too, with the same result. I like uniformserver but without virtual hosting, I'm going to try something else like p.e. wampserver.Thanks anyway. tim Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.