How to change web server folder location in xampp

I installed xampp and by default my site files are stored in htdocs. How to change the path to the web directory?

+4
source share
4 answers

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

+6
source

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

Change the line starting with "Directory ...".

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

+4
source

find the file "httpd.conf" and change the path in this file.

0
source

change localhost name? instead of having localhostdomain / webdirectory

can you have newdomain / webdirectory?

0
source

Source: https://habr.com/ru/post/1437996/


All Articles