xampp 更改文档根目录 [英] xampp change document root
问题描述
我有 Eclipse IDE,并且在C:/users/matt/documents/web/"中设置了一个工作区.我在文件夹 test "C:/users/matt/documents/web/test" 中设置了一个名为 test 的项目.我已将 httpd 文件中的文档根目录更改为C:/users/matt/documents/web/",
I have eclipse IDE and I have set up a workspace in "C:/users/matt/documents/web/". I set up a project called test in the folder test "C:/users/matt/documents/web/test". I have changed the Document root in the httpd file to "C:/users/matt/documents/web/" and the same for
我将C:/users/matt/documents/web/test"放入浏览器,但我无法访问工作区中的文件,对于 http://localhost/xampp/web/test 也是如此/
、http://localhost/web/test/
和 http://localhost/test/
.
I put "C:/users/matt/documents/web/test" into the browser but I can't access the files in the workspace, same for http://localhost/xampp/web/test/
, http://localhost/web/test/
and http://localhost/test/
.
我对服务器配置不够了解,请帮忙!
I'm out of my depth with server configurations, please help!
推荐答案
c:\XAMPP\apache\conf\httpd.conf
c:\XAMPP\apache\conf\httpd.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot C:/users/matt/documents/web/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory C:/users/matt/documents/web/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
重启apache web服务器,然后...进入:http://localhost/test
Restart apache web server, then ... Enter: http://localhost/test
检查过去的问题
这篇关于xampp 更改文档根目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!