我试图在别名中设置一个自定义错误文档。
Alias /f1 "/media/data/www/f1"
<Directory "/media/data/wwww/f1">
AddHandler cgi-script .cgi .pl
Options Includes Indexes MultiViews FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
ErrorDocument 404 "Something was not found!"
</Directory>这绝对是行不通的!虚拟主机中的相同指令工作得很好。我做错了什么?
我找不到任何说明我不能在Alias区段中有自定义错误消息的引用。
发布于 2012-04-19 01:50:03
我已经为你测试过了,效果很好。看起来您的目录语句中有一个错误。(不是www)
https://serverfault.com/questions/380938
复制相似问题