Merging r4209:
Skipping location rewrite phase for server null location.
Igor Sysoev
10 years ago
134 | 134 | static ngx_int_t |
135 | 135 | ngx_http_rewrite_handler(ngx_http_request_t *r) |
136 | 136 | { |
137 | ngx_int_t index; | |
137 | 138 | ngx_http_script_code_pt code; |
138 | 139 | ngx_http_script_engine_t *e; |
140 | ngx_http_core_srv_conf_t *cscf; | |
141 | ngx_http_core_main_conf_t *cmcf; | |
139 | 142 | ngx_http_rewrite_loc_conf_t *rlcf; |
143 | ||
144 | cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); | |
145 | cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); | |
146 | index = cmcf->phase_engine.location_rewrite_index; | |
147 | ||
148 | if (r->phase_handler == index && r->loc_conf == cscf->ctx->loc_conf) { | |
149 | /* skipping location rewrite phase for server null location */ | |
150 | return NGX_DECLINED; | |
151 | } | |
140 | 152 | |
141 | 153 | rlcf = ngx_http_get_module_loc_conf(r, ngx_http_rewrite_module); |
142 | 154 |