Mercurial > hg > nginx
diff src/http/ngx_http_core_module.h @ 2407:16d1236bc298
try_files
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 15 Dec 2008 10:56:48 +0000 |
parents | c59485781f0a |
children | 43dcf8cc2cb1 |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.h Mon Dec 15 10:50:57 2008 +0000 +++ b/src/http/ngx_http_core_module.h Mon Dec 15 10:56:48 2008 +0000 @@ -81,6 +81,7 @@ NGX_HTTP_ACCESS_PHASE, NGX_HTTP_POST_ACCESS_PHASE, + NGX_HTTP_TRY_FILES_PHASE, NGX_HTTP_CONTENT_PHASE, NGX_HTTP_LOG_PHASE @@ -129,6 +130,8 @@ ngx_hash_keys_arrays_t *variables_keys; + ngx_uint_t try_files; /* unsigned try_files:1 */ + ngx_http_phase_t phases[NGX_HTTP_LOG_PHASE + 1]; } ngx_http_core_main_conf_t; @@ -238,6 +241,13 @@ } ngx_http_err_page_t; +typedef struct { + ngx_array_t *lengths; + ngx_array_t *values; + ngx_str_t name; +} ngx_http_try_file_t; + + struct ngx_http_core_loc_conf_s { ngx_str_t name; /* location name */ @@ -328,6 +338,7 @@ #endif ngx_array_t *error_pages; /* error_page */ + ngx_http_try_file_t *try_files; /* try_files */ ngx_path_t *client_body_temp_path; /* client_body_temp_path */ @@ -386,6 +397,8 @@ ngx_http_phase_handler_t *ph); ngx_int_t ngx_http_core_post_access_phase(ngx_http_request_t *r, ngx_http_phase_handler_t *ph); +ngx_int_t ngx_http_core_try_files_phase(ngx_http_request_t *r, + ngx_http_phase_handler_t *ph); ngx_int_t ngx_http_core_content_phase(ngx_http_request_t *r, ngx_http_phase_handler_t *ph);