2

I use xampp and have a project where I need to point/configure the server to a different root directory (public in this case) and I do it by going to

xampp > Apache > Config > httpd.conf

find this

DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">

and change it to

DocumentRoot "C:/xampp/htdocs/project/public/"
<Directory "C:/xampp/htdocs/project/public/">

restart the server and this works.

My problem is that all of my other projects work on the default document root setting but I need to change the document root setting every time when I work on this particular project (I repeat the above process 3-4 times a day).

Is there a way to change the root document for only one project and let the rest work on the default setting?

0 Answers0