# HG changeset patch # User Sergey Kandaurov # Date 1363936694 -14400 # Node ID 96839d165b8acd616b57d37331d004afba8712d0 # Parent 6087d3fa69191dcb59e084e7e1490691dfad082a Clarify the description of error_page example. diff --git a/xml/en/docs/http/ngx_http_core_module.xml b/xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml +++ b/xml/en/docs/http/ngx_http_core_module.xml @@ -10,7 +10,7 @@ + rev="19">
@@ -614,7 +614,7 @@ It is also possible to use redirects for error_page 403 http://example.com/forbidden.html; error_page 404 =301 http://example.com/notfound.html; -In this case, the response code 302 is returned to the client. +In this case, by default, the response code 302 is returned to the client. It can only be changed to one of the redirect status codes (301, 302, 303, and 307). diff --git a/xml/ru/docs/http/ngx_http_core_module.xml b/xml/ru/docs/http/ngx_http_core_module.xml --- a/xml/ru/docs/http/ngx_http_core_module.xml +++ b/xml/ru/docs/http/ngx_http_core_module.xml @@ -10,7 +10,7 @@ + rev="19">
@@ -603,7 +603,7 @@ error_page 404 = /404.php; error_page 403 http://example.com/forbidden.html; error_page 404 =301 http://example.com/notfound.html; -В этому случае клиенту возвращается код ответа 302. +В этом случае по умолчанию клиенту возвращается код ответа 302. Его можно изменить только на один из кодов статуса, относящихся к перенаправлениям (301, 302, 303 и 307).