Completely change default WWW directory into new? [Solved]

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

Completely change default WWW directory into new? [Solved]

Postby l19980623 » 16. July 2012 05:02

Hello there
I want to change the default WWW directory into new one instead, and I found
The main directory for all WWW documents is \xampp\htdocs.

on the FAQ site.But it isn't convenient enough for me, and I want to change this into
Code: Select all
K:\wordpress

OK, then I tried to edit some code in \xampp\apache\conf\httpd.conf, but it doesn't work.
So what should I do :?:
l19980623
 
Posts: 3
Joined: 16. July 2012 04:48
Operating System: Windows 7 64 bit

Re: How I can completely change default WWW directory into n

Postby JonB » 16. July 2012 07:56

ahhh - change the DocumentRoot in httpd.conf???

:shock:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: How I can completely change default WWW directory into n

Postby l19980623 » 16. July 2012 08:28

Seems good, but I don't konw which line I should edit.Sometimes Apache crashed after my edition :(
l19980623
 
Posts: 3
Joined: 16. July 2012 04:48
Operating System: Windows 7 64 bit

Re: How I can completely change default WWW directory into n

Postby JonB » 16. July 2012 08:41

DocumentRoot "/xampp/htdocs"


The problem with that approach is that other things you may want will no longer work.

Creating an 'Alias' might be a better idea

http://httpd.apache.org/docs/2.4/urlmapping.html

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: How I can completely change default WWW directory into n

Postby l19980623 » 16. July 2012 08:43

It Works!!!Thanks a lot
l19980623
 
Posts: 3
Joined: 16. July 2012 04:48
Operating System: Windows 7 64 bit

Re: How I can completely change default WWW directory into n

Postby JonB » 16. July 2012 14:18

Great - have fun with your project.

Good Luck with XAMPP
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 54 guests