diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-08-14 20:02:09 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-08-14 20:02:09 +0000 |
| commit | d4eeedc3a0e5125ef1b1a1fed247318e5de0dcf1 (patch) | |
| tree | d4a055745a104ae6a027b6b616b37d607e19f206 /src/http/ngx_http_core_module.h | |
| parent | c7684f5afbcf859539add9b8e5bf52fad0717cf8 (diff) | |
| download | nginx-d4eeedc3a0e5125ef1b1a1fed247318e5de0dcf1.tar.gz nginx-d4eeedc3a0e5125ef1b1a1fed247318e5de0dcf1.tar.bz2 | |
r1354 merge:
named location
Diffstat (limited to 'src/http/ngx_http_core_module.h')
| -rw-r--r-- | src/http/ngx_http_core_module.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index db1e0439a..5e9b48327 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -79,6 +79,7 @@ struct ngx_http_phase_handler_s { typedef struct { ngx_http_phase_handler_t *handlers; ngx_uint_t server_rewrite_index; + ngx_uint_t location_rewrite_index; } ngx_http_phase_engine_t; @@ -117,7 +118,8 @@ typedef struct { */ ngx_array_t locations; - unsigned regex_start:16; + unsigned regex_start:15; + unsigned named_start:15; unsigned wildcard:1; /* array of the ngx_http_listen_t, "listen" directive */ @@ -211,9 +213,10 @@ struct ngx_http_core_loc_conf_s { ngx_regex_t *regex; #endif - unsigned regex_start:16; + unsigned regex_start:15; - unsigned noname:1; /* "if () {}" block */ + unsigned noname:1; /* "if () {}" block or limit_except */ + unsigned named:1; unsigned exact_match:1; unsigned noregex:1; @@ -313,6 +316,8 @@ ngx_int_t ngx_http_subrequest(ngx_http_request_t *r, ngx_http_post_subrequest_t *psr, ngx_uint_t flags); ngx_int_t ngx_http_internal_redirect(ngx_http_request_t *r, ngx_str_t *uri, ngx_str_t *args); +ngx_int_t ngx_http_named_location(ngx_http_request_t *r, ngx_str_t *name); + ngx_http_cleanup_t *ngx_http_cleanup_add(ngx_http_request_t *r, size_t size); |
