comparison src/http/ngx_http_special_response.c @ 593:4d3e880ce86c NGINX_0_8_42

nginx 0.8.42 *) Change: now nginx tests locations given by regular expressions, if request was matched exactly by a location given by a prefix string. The previous behavior has been introduced in 0.7.1. *) Feature: the ngx_http_scgi_module. Thanks to Manlio Perillo. *) Feature: a text answer may be added to a "return" directive.
author Igor Sysoev <http://sysoev.ru>
date Mon, 21 Jun 2010 00:00:00 +0400
parents ff463db0be31
children c456a023113c
comparison
equal deleted inserted replaced
592:c570633043e7 593:4d3e880ce86c
63 "<body bgcolor=\"white\">" CRLF 63 "<body bgcolor=\"white\">" CRLF
64 "<center><h1>302 Found</h1></center>" CRLF 64 "<center><h1>302 Found</h1></center>" CRLF
65 ; 65 ;
66 66
67 67
68 static char ngx_http_error_303_page[] =
69 "<html>" CRLF
70 "<head><title>303 See Other</title></head>" CRLF
71 "<body bgcolor=\"white\">" CRLF
72 "<center><h1>303 See Other</h1></center>" CRLF
73 ;
74
75
68 static char ngx_http_error_400_page[] = 76 static char ngx_http_error_400_page[] =
69 "<html>" CRLF 77 "<html>" CRLF
70 "<head><title>400 Bad Request</title></head>" CRLF 78 "<head><title>400 Bad Request</title></head>" CRLF
71 "<body bgcolor=\"white\">" CRLF 79 "<body bgcolor=\"white\">" CRLF
72 "<center><h1>400 Bad Request</h1></center>" CRLF 80 "<center><h1>400 Bad Request</h1></center>" CRLF
279 #define NGX_HTTP_LEVEL_200 (NGX_HTTP_LAST_LEVEL_200 - 201) 287 #define NGX_HTTP_LEVEL_200 (NGX_HTTP_LAST_LEVEL_200 - 201)
280 288
281 /* ngx_null_string, */ /* 300 */ 289 /* ngx_null_string, */ /* 300 */
282 ngx_string(ngx_http_error_301_page), 290 ngx_string(ngx_http_error_301_page),
283 ngx_string(ngx_http_error_302_page), 291 ngx_string(ngx_http_error_302_page),
284 ngx_null_string, /* 303 */ 292 ngx_string(ngx_http_error_303_page),
285 293
286 #define NGX_HTTP_LAST_LEVEL_300 304 294 #define NGX_HTTP_LAST_LEVEL_300 304
287 #define NGX_HTTP_LEVEL_300 (NGX_HTTP_LAST_LEVEL_300 - 301) 295 #define NGX_HTTP_LEVEL_300 (NGX_HTTP_LAST_LEVEL_300 - 301)
288 296
289 ngx_string(ngx_http_error_400_page), 297 ngx_string(ngx_http_error_400_page),