|
|
有个问题:
http.conf里面设置了:
Alias /errordocs /usr/local/apache/errordocs
AllowOverride none
Options MultiViews IncludesNoExec FollowSymLinks
AddType text/html .shtml
SetOutputFilter INCLUDES
并且设:
ErrorDocument 403 /errordocs/403.html
在/usr/local/apache/errordocs目录建立了403.html,并且设权限为0755
当试图连接一个服务器根目录下的权限是644的目录时正确调用了403.html
没有问题
但是当调用这个权限是644的目录下面的某个子目录或者文件时,不管子目录或者文件存不存在,也不管子目录或者文件权限如何,输出不再调用403.html
而是输出:
Forbidden
You don't have permission to access /localhost/images/ on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
请教,如何让子目录继承ErrorDocument的403设置?! |
|