Apache的自定义错误页

Apache的自定义错误页,apache,http-status-code-404,custom-error-pages,Apache,Http Status Code 404,Custom Error Pages,我的.htaccess文件: AuthType Basic AuthName "FORBIDDEN AREA" AuthUserfile "../htdocs/forbidden/.htpasswd" Require valid-user <Directory /server> Order allow,deny Allow from all </Directory> ErrorDocument 500 /server/error500.html ErrorDo

我的.htaccess文件:

AuthType Basic
AuthName "FORBIDDEN AREA"
AuthUserfile "../htdocs/forbidden/.htpasswd"
Require valid-user

<Directory /server>
  Order allow,deny
  Allow from all
</Directory>

ErrorDocument 500 /server/error500.html
ErrorDocument 404 /server/error404.html
ErrorDocument 404 /server/error404.html
ErrorDocument 402 /subscription_info.html
AuthType-Basic
AuthName“禁地”
AuthUserfile“./htdocs/probled/.htpasswd”
需要有效用户
命令允许,拒绝
通融
ErrorDocument 500/server/error500.html
ErrorDocument 404/server/error404.html
ErrorDocument 404/server/error404.html
错误文档402/subscription\u info.html

所有我的错误页面都在htdocs/server/error***.html中


但是Apache显示了它的一般错误页面。

错误文档404作为您的恢复。

清楚地提到您的需求。。