Обработка запроса ErrorDocument 403Apache

Anonymous
Обработка запроса ErrorDocument 403

Сообщение Anonymous »

Здравствуйте, я создал файл error.html в /var/www/error_page/ для отображения этой страницы в случае ошибки 403. >
и мой файл /var/www/html/wordpress/.htaccess выглядит так

order allow,deny

allow from my_ip

ErrorDocument 403 /var/www/error_page/error.html


RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


Когда я хочу получить доступ к своему сайту из-за пределов сети, я получаю эту страницу, а не ту, которая мне нужна
Forbidden

You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.4.59 (Debian) Server at example.com Port 443


Подробнее здесь: https://stackoverflow.com/questions/787 ... t-handling

Вернуться в «Apache»