Modify XAMPP default path



 After XAMPP is installed, the default root directory path is C:\xampp\htdocs,

If you want to run the document under the server, you must copy the document to C:\xampp\htdocs.

Not to mention the trouble, the company code can never be put into operation. . . So you need to modify the configuration document: the content of httpd.conf~


Open the XAMPP installation directory, find the httpd.conf document in the C:\xampp\apache\conf directory and open it.

turn up:

                 DocumentRoot "C:\xampp\htdocs"

                 <Directory "C:\xampp\htdocs">


Modify the values behind DocumentRoot and Directory to the root directory you want to open. I am here to open the D:\ued directory, so I changed these two values to: D:\ued, save.


Restart XAMPP

Open http://localhost/, the contents of the D:\ued directory are displayed under the page~ You're done~

Post a Comment

0 Comments