【发布时间】:2011-10-20 10:03:01
【问题描述】:
我试图给它起别名: /htdocs/test/index.php
在我的 xampp/apache/conf/extra/httpd-xampp.conf 中,我有以下条目:
<IfModule alias_module>
<IfModule mime_module>
Alias /test/ "D:/Installation/xampp/htdocs/test"
<Directory "D:/Installation/xampp/test">
<IfModule php5_module>
<Files "index.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
Order allow,deny
Allow from all
</Directory>
</IfModule>
</IfModule>
当我转到http://localhost/test/ 时,我会看到显示的目录列表。当我输入这个 URL - http://localhost/test/ 时,我想要打开这个文件 - /test/index.php。
当我尝试直接访问此 URL“localhost/test/index.php”时,我收到“找不到错误 404 对象”消息。
我做错了什么?
【问题讨论】:
标签: apache xampp alias httpd.conf