Apache and XAMPP config files

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

Apache and XAMPP config files

Postby vicpug » 25. April 2004 01:46

Hello,
I would like to change the root apache serving path to be windows root c:
so I make these two changes in httpd.conf

DocumentRoot "C:"
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:">

and this works well for most things, except for the XAMPP web application which gets started by splash.php. This still navigates via the old path. Many thanks for any help. Is there an easier way to allow Apache to use extra paths to serve. ie mambo installs into C:\mambo and other products install into other directories?
many thanks
vicpug
 
Posts: 3
Joined: 25. April 2004 01:26
Location: Australia

Postby Wiedmann » 25. April 2004 02:22

Hi,

I think set DocumentRoot to "C:"' is a very bad idea.
DocumentRoot and Directory must have at least one slash "/":
DocumentRoot "C:/" | <Directory "C:/">

Is there an easier way to allow Apache to use extra paths to serve. ie mambo installs into C:\mambo and other products install into other directories?

Code: Select all
Alias /mambo "C:/mambo/"
<Directory "C:/mambo">
Order Allow,Deny
Allow from all
</Directory>

you can access mambo now with:
http://localhost/mambo/
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

setting your docroot

Postby MAGnUm » 25. April 2004 02:39

setting your docroot to the root of a drive is BAD!!!!

Wiedmann has the right idea.
~~:M A G n U m:~~
(Disclaimer: if any of this info is confusing or vague tough, its free!!)
User avatar
MAGnUm
 
Posts: 151
Joined: 16. October 2003 18:08
Location: USA

Postby vicpug » 25. April 2004 03:07

Yes - using Alias is spot on , many thanks for the perfect solution. yes using C:\ is a BAD idea.

cheers
vicpug
 
Posts: 3
Joined: 25. April 2004 01:26
Location: Australia


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 132 guests