Jump to content

virtual host


piyush23424

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.