Page 1 of 1

Completely change default WWW directory into new? [Solved]

PostPosted: 16. July 2012 05:02
by l19980623
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 :?:

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

PostPosted: 16. July 2012 07:56
by JonB
ahhh - change the DocumentRoot in httpd.conf???

:shock:

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

PostPosted: 16. July 2012 08:28
by l19980623
Seems good, but I don't konw which line I should edit.Sometimes Apache crashed after my edition :(

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

PostPosted: 16. July 2012 08:41
by JonB
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)

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

PostPosted: 16. July 2012 08:43
by l19980623
It Works!!!Thanks a lot

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

PostPosted: 16. July 2012 14:18
by JonB
Great - have fun with your project.

Good Luck with XAMPP
8)