0

我有 httpd-xampp.conf

<IfModule alias_module>
...
    Alias /examples "D:/xampp/htdocs/examples/" 
    <Directory "D:/xampp/htdocs/examples">
        Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
    Require all granted
    </Directory>
</IfModule>

在示例文件夹中我有 index.html,但是当我访问时http://localhost:8880/examples,我有错误

This page was not found

You are not logged in.

Back Log in Issues

我的配置有错误吗?其他别名:phpmyadmin,安全性很好。

4

1 回答 1

1

我将 httpd-xampp.conf 更改为

<IfModule alias_module>
...
    #!!! Don't know why
    #Alias /examples "D:/xampp/examples/" don't work 

    Alias /my-examples "D:/xampp/examples/" 
    <Directory "D:/xampp/examples">
        AllowOverride AuthConfig
        Require all granted
    </Directory>
</IfModule>

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info|my-examples))">
        Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

现在http://localhost:8880/my-examples开始工作

于 2014-07-01T04:54:39.437 回答