0
我有这样的结构的共享主机:的ErrorDocument 403不工作的子目录
~/above_public_html/public_html/directory_i_want_forbidden
我有以下内容的~/above_public_html/.htaccess
:
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
当我导航到一个文件或文件夹这不存在,我得到了404.html弹出,没有问题。
当我浏览到存在但是chmod 700
权限(包括directory_i_want_forbidden
)的子文件夹或文件,我得到:
Forbidden
You don't have permission to access /directory_i_want_forbidden on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at www.mydomain.com Port 80
我需要什么,以便正确地使ErrorDocument 403 /403.html
工作要做?
由于错误似乎访问'403.html'也被禁止。检查该文件的chmod设置。 – 2013-03-01 04:42:35
它会在'〜/ above_public_html/public_html/directory_i_want_forbidden'目录中查找403.html吗? – 2013-03-01 04:56:54
没有。我将.htaccess文件修改为“ErrorDocument 403 http:// www.mysite.com/403.html”,但仍然出现相同的错误!到底是怎么回事? – 2013-03-01 05:11:31