303 See Other
This commit is contained in:
parent
841fae0f47
commit
b09cdc4156
3 changed files with 11 additions and 2 deletions
|
@ -68,7 +68,7 @@ static ngx_str_t ngx_http_status_lines[] = {
|
|||
|
||||
ngx_string("301 Moved Permanently"),
|
||||
ngx_string("302 Moved Temporarily"),
|
||||
ngx_null_string, /* "303 See Other" */
|
||||
ngx_string("303 See Other"),
|
||||
ngx_string("304 Not Modified"),
|
||||
|
||||
/* ngx_null_string, */ /* "305 Use Proxy" */
|
||||
|
|
|
@ -72,6 +72,7 @@
|
|||
#define NGX_HTTP_SPECIAL_RESPONSE 300
|
||||
#define NGX_HTTP_MOVED_PERMANENTLY 301
|
||||
#define NGX_HTTP_MOVED_TEMPORARILY 302
|
||||
#define NGX_HTTP_SEE_OTHER 303
|
||||
#define NGX_HTTP_NOT_MODIFIED 304
|
||||
|
||||
#define NGX_HTTP_BAD_REQUEST 400
|
||||
|
|
|
@ -65,6 +65,14 @@ static char ngx_http_error_302_page[] =
|
|||
;
|
||||
|
||||
|
||||
static char ngx_http_error_303_page[] =
|
||||
"<html>" CRLF
|
||||
"<head><title>303 See Other</title></head>" CRLF
|
||||
"<body bgcolor=\"white\">" CRLF
|
||||
"<center><h1>303 See Other</h1></center>" CRLF
|
||||
;
|
||||
|
||||
|
||||
static char ngx_http_error_400_page[] =
|
||||
"<html>" CRLF
|
||||
"<head><title>400 Bad Request</title></head>" CRLF
|
||||
|
@ -281,7 +289,7 @@ static ngx_str_t ngx_http_error_pages[] = {
|
|||
/* ngx_null_string, */ /* 300 */
|
||||
ngx_string(ngx_http_error_301_page),
|
||||
ngx_string(ngx_http_error_302_page),
|
||||
ngx_null_string, /* 303 */
|
||||
ngx_string(ngx_http_error_303_page),
|
||||
|
||||
#define NGX_HTTP_LAST_LEVEL_300 304
|
||||
#define NGX_HTTP_LEVEL_300 (NGX_HTTP_LAST_LEVEL_300 - 301)
|
||||
|
|
Loading…
Reference in a new issue