Forum Moderators: phranque

Message Too Old, No Replies

change the location of htdocs

change the location of the default directory for web pages

         

vsgill

5:51 am on Nov 5, 2006 (gmt 0)

10+ Year Member



Hi every 1
i know this question might have been asked many time... but belive me i didetn find any easy answer to it..

I just intalled apache2.2 and want to change the deafault loaction of the htdocs folder to some thing else for examle..

FROM
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
TO
D:\www

i tried a couple of things but dident workkk

Also can any1 recomend agood and easy GUI tool for configuriong the basic apache features... maybe a free 1

thanx in advance
Vik

AthenaLightened

8:07 am on Nov 5, 2006 (gmt 0)

10+ Year Member



u can edit the httpd.conf file(C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf).

1.open it with notepad and search for
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
2.change it to DocumentRoot "D:\www"
3.save it and restart the apache server.