December 6, 200619 yr comment_3990 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 Report
December 6, 200619 yr comment_3991 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 Report
December 7, 200619 yr Author comment_3992 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 Report
December 9, 200619 yr comment_4022 tim, try changingDocumentRoot /www/site2toDocumentRoot /www/site2/ Report
December 11, 200619 yr Author comment_4047 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 Report
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.