Default directory

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

Default directory

Postby Mister Nono » 09. October 2006 08:49

Hello,

My web projects are on c:\www\

For example :

Code: Select all
c:\www\project1
c:\www\project2...


How indicate to Xamp this, for use projects with the web adresse : :?:

Code: Select all
http://localhost/project1...


Thank. :wink:
Mister Nono
 
Posts: 7
Joined: 09. October 2006 08:30
Location: Montpellier - FRANCE

Postby Izzy » 09. October 2006 09:05

Would it not be easier to use the defaults and move your projects from c:\www\project1 to the htdocs folder xampp\htdocs\project1?

This would give you:
http://localhost/project1/

Then you wouldn't have to change a thing and you would still be able to access the XAMPP Welcome page with all it's menu items.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby Mister Nono » 09. October 2006 09:15

No, because all projects are in my itinerant profile, and had been save regulary on the server.

Nota : In EasyPHP is very easy to change this default directory. :wink:
Mister Nono
 
Posts: 7
Joined: 09. October 2006 08:30
Location: Montpellier - FRANCE

Postby Izzy » 09. October 2006 09:31

Mister Nono wrote:Nota : In EasyPHP is very easy to change this default directory. ;)

It's even easier in Apache when you know how. ;)


In your xampp\apache\conf\httpd.conf find this:
(Note - C:/xampp/htdocs will be different on your server and depends on where you installed XAMPP to):
Code: Select all
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/xampp/htdocs"

Change to:
DocumentRoot "C:/www"

Now find this:
Code: Select all
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/xampp/htdocs">

Change to:
<Directory "C:/www">

Save the file then restart the Apache server.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby Mister Nono » 09. October 2006 10:01

Thank. :D
Mister Nono
 
Posts: 7
Joined: 09. October 2006 08:30
Location: Montpellier - FRANCE


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 62 guests