如何将 xampp localhost 更改为另一个文件夹(在 xampp 文件夹之外)? [英] How to change xampp localhost to another folder ( outside xampp folder)?
本文介绍了如何将 xampp localhost 更改为另一个文件夹(在 xampp 文件夹之外)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将我的默认 xampp localhost c:xampp/htdoc
更改为另一个文件夹,即 c:/alan
?当我使用 IP 地址时,我应该能够在 C:/alan
中查看我的网站文件.
How can I change my default xampp localhost c:xampp/htdoc
to another folder i.e. c:/alan
? When I use the IP address I should be able to view my website file in C:/alan
.
感谢您帮助我.
Thanks for helping me.
推荐答案
编辑 httpd.conf 文件并替换 DocumentRoot "/home/user/www" 行给你喜欢的人.
Edit the httpd.conf file and replace the line DocumentRoot "/home/user/www" to your liked one.
默认的DocumentRoot路径对于windows会有所不同[以上是针对linux的].
The default DocumentRoot path will be different for windows [the above is for linux].
这篇关于如何将 xampp localhost 更改为另一个文件夹(在 xampp 文件夹之外)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文