Reputation:
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
Reputation: 379
change localhost's name ? thus instead of having localhostdomain/webdirectory
you may have newdomain/webdirectory ?
Upvotes: 0
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
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