如何将xampp localhost更改为另一个文件夹(xampp文件夹外部)? [英] How to change xampp localhost to another folder ( outside xampp folder)?
本文介绍了如何将xampp localhost更改为另一个文件夹(xampp文件夹外部)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将默认的xampp本地主机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.
对于Windows,默认的 DocumentRoot 路径会有所不同[以上对于Linux].
The default DocumentRoot path will be different for windows [the above is for linux].
这篇关于如何将xampp localhost更改为另一个文件夹(xampp文件夹外部)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文