XAMPP变化文档根目录 [英] xampp change document root

查看:136
本文介绍了XAMPP变化文档根目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Eclipse IDE和我已成立了在C:/用户/亚光/文件/网页/工作空间。我成立了一家名为测试项目中的文件夹考C:/用户/亚光/文件/网页/测试。我在的httpd文件中更改文档根目录为C:/用户/亚光/文件/网页/和同为

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:/用户/亚光/文件/网页/测试在浏览器中,但我不能访问这些文件在工作区中,对于相同的 HTTP://本地主机/ XAMPP /网络/测试/ 的http://本地主机/网络/测试/ 的http://本地主机/测试/

I put "C:/users/matt/documents/web/test" into the browser but I cant 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>

...
输入:
的http://本地主机/测试

检查过去<一个href=\"http://stackoverflow.com/questions/1408/make-xampp-apache-serve-file-outside-of-htdocs\">question

这篇关于XAMPP变化文档根目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆