piyush23424 Posted December 28, 2009 Share Posted December 28, 2009 Hi I have configured virual host on my localhost(xampp). now i can access my two folders foldername1, foldername2 from htdocs with url http://foldername1.localhost/ . and http://foldername2.localhost/ resp. but the problem is that if i run other application in the browser then it is gives 403 "page not found" error. eg . http://localhost/foldername/ is not working only virtual host is working. i want both of them in working state. Thanks Link to comment https://forums.phpfreaks.com/topic/186502-virtual-host/ Share on other sites More sharing options...
rajivgonsalves Posted December 28, 2009 Share Posted December 28, 2009 you will have to create a virtual host for localhost too Link to comment https://forums.phpfreaks.com/topic/186502-virtual-host/#findComment-984888 Share on other sites More sharing options...
piyush23424 Posted December 28, 2009 Author Share Posted December 28, 2009 Problem is Solved, Thanks rajiv, i got my problem solved by adding following lines in my "httpd-vhost.conf" file <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot "C:\\xampp\\htdocs\\" ServerName localhost </VirtualHost> Link to comment https://forums.phpfreaks.com/topic/186502-virtual-host/#findComment-984897 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.