How to change xampp localhost to another folder ( outside xampp folder)?

enrekan2011 picture enrekan2011 · Jan 13, 2012 · Viewed 267.6k times · Source

How can I change my default xampp localhost c:xampp/htdoc to another folder i.e. c:/alan? When I use the IP address I should be able to view my website file in C:/alan.


Thanks for helping me.

Answer

Sourav picture Sourav · Jan 13, 2012

Edit the httpd.conf file and replace the line DocumentRoot "/home/user/www" to your liked one.

The default DocumentRoot path will be different for windows [the above is for linux].