Problem with document root in httpd.conf

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Problem with document root in httpd.conf

Postby skeyter » 23. April 2011 14:01

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!
skeyter
 
Posts: 6
Joined: 23. April 2011 12:11

Re: Problem with document root in httpd.conf

Postby Nobbie » 23. April 2011 15:20

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.
Nobbie
 
Posts: 8780
Joined: 09. March 2008 13:04

Re: Problem with document root in httpd.conf

Postby skeyter » 23. April 2011 16:06

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!!!
skeyter
 
Posts: 6
Joined: 23. April 2011 12:11

Re: Problem with document root in httpd.conf

Postby skeyter » 23. April 2011 21:20

Good God in heaven this is proving difficult :\
skeyter
 
Posts: 6
Joined: 23. April 2011 12:11


Return to XAMPP for Windows

Who is online

Users browsing this forum: DarthSidus and 54 guests