我的httpd.conf是。
<VirtualHost *:80>
ServerName example.com
DocumentRoot /path/to/dir/
ErrorDocument 403 /my403.html
ErrorDocument 404 /my404.html
ErrorDocument 500 /my500.html
<Directory "/path/to/dir/ ">
AllowOverride None
Options -Indexes
Order deny,allow
Deny from all
<FilesMatch "\.(JPG|jpg|jpeg|gif|png|css)$">
allow from all
</FilesMatch>
</Directory>
</VirtualHost>在层次结构的深层页面(/path/to/dir/)中,默认页面出现了什么问题?
访问日志
服务器配置拒绝的
发布于 2009-06-30 21:31:22
在允许的文件列表中没有html文件,因此默认情况下它们被拒绝。这包括您的自定义错误页面,因此它们也不会出现!
我将为您的错误页创建一个单独的子目录,并特别允许从该子目录中为html页面提供服务。
https://serverfault.com/questions/33735
复制相似问题