Page 1 of 1

Problem with document root in httpd.conf

PostPosted: 23. April 2011 14:01
by skeyter
Hi!

I want to be able to make a folder visible on the web, but also be able to access localhost from the xampp control panel. Once I change document root in httpd.conf, I automatically get the index.html page I created. There obviously must be a way to simultaneously use xampp on the web and also still have access to my localhost page.

Basically what I'm saying is, once I change document root path in httpd.conf, I can't access localhost anymore.

Thanks!

Re: Problem with document root in httpd.conf

PostPosted: 23. April 2011 15:20
by Nobbie
Create different VirtualHosts, one "localhost" and one for direct access from the web (you have to get a public domain name for that, i.e. at www.dyndns.org or similar) and provide different DocumentRoot to these VirtualHosts.

Re: Problem with document root in httpd.conf

PostPosted: 23. April 2011 16:06
by skeyter
Many thanks for the reply my friend. I already have my public domain all setup. Could you, if possible give me a quick run down on how to create a virtual host? Many thanks!!!

Re: Problem with document root in httpd.conf

PostPosted: 23. April 2011 21:20
by skeyter
Good God in heaven this is proving difficult :\