Klaus Demo nginx / d3769b1
Merging r4209: Skipping location rewrite phase for server null location. Igor Sysoev 10 years ago
1 changed file(s) with 12 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
134134 static ngx_int_t
135135 ngx_http_rewrite_handler(ngx_http_request_t *r)
136136 {
137 ngx_int_t index;
137138 ngx_http_script_code_pt code;
138139 ngx_http_script_engine_t *e;
140 ngx_http_core_srv_conf_t *cscf;
141 ngx_http_core_main_conf_t *cmcf;
139142 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 }
140152
141153 rlcf = ngx_http_get_module_loc_conf(r, ngx_http_rewrite_module);
142154