user1699696
user1699696

Reputation:

how to change web server folder location in xampp

I have installed xampp and by default my website files are stored in htdocs. How do I change the webdirectory path?

Upvotes: 5

Views: 16479

Answers (4)

Daniel
Daniel

Reputation: 379

change localhost's name ? thus instead of having localhostdomain/webdirectory

you may have newdomain/webdirectory ?

Upvotes: 0

user1722902
user1722902

Reputation:

Edit the file /opt/lampp/etc/httpd.conf and change the lines containing current web directory path. It should start with DocumentRoot. Update all the places having the current path to the path you would like it to be.

Upvotes: 8

Kevin
Kevin

Reputation: 6691

It can be done by editing the "httpd.conf" file present in this path "\xampp\apache\conf\".

Change the line that starts with "Directory ...".

Note that all the lines that start with a hash (#) are just comments and are there just to describe the commands present there in the file.

Upvotes: 6

raju
raju

Reputation: 4978

search for the file "httpd.conf" and change the path in that file.

Upvotes: 0

Related Questions