Mercurial > hg > nginx
comparison src/http/modules/ngx_http_rewrite_handler.c @ 218:05592fd7a436
nginx-0.0.1-2004-01-05-23:55:48 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 05 Jan 2004 20:55:48 +0000 |
parents | f1d0e5f09c1e |
children | 87e73f067470 |
comparison
equal
deleted
inserted
replaced
217:c5d1cdcb04ec | 218:05592fd7a436 |
---|---|
111 rc = ngx_regex_exec(rule[i].regex, &r->uri, matches, rule[i].msize); | 111 rc = ngx_regex_exec(rule[i].regex, &r->uri, matches, rule[i].msize); |
112 | 112 |
113 if (rc == NGX_DECLINED) { | 113 if (rc == NGX_DECLINED) { |
114 if (scf->log) { | 114 if (scf->log) { |
115 ngx_log_error(NGX_LOG_NOTICE, r->connection->log, 0, | 115 ngx_log_error(NGX_LOG_NOTICE, r->connection->log, 0, |
116 "\"%s\" is not matched", rule[i].re_name.data); | 116 "\"%s\" does not match", rule[i].re_name.data); |
117 } | 117 } |
118 | 118 |
119 continue; | 119 continue; |
120 } | 120 } |
121 | 121 |
127 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 127 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
128 } | 128 } |
129 | 129 |
130 if (scf->log) { | 130 if (scf->log) { |
131 ngx_log_error(NGX_LOG_NOTICE, r->connection->log, 0, | 131 ngx_log_error(NGX_LOG_NOTICE, r->connection->log, 0, |
132 "\"%s\" matched", rule[i].re_name.data); | 132 "\"%s\" matches", rule[i].re_name.data); |
133 } | 133 } |
134 | 134 |
135 uri.len = rule[i].size; | 135 uri.len = rule[i].size; |
136 | 136 |
137 for (n = 1; n < rc; n++) { | 137 for (n = 1; n < rc; n++) { |
299 } | 299 } |
300 } | 300 } |
301 } | 301 } |
302 } | 302 } |
303 | 303 |
304 rule->msize++; | 304 if (rule->msize) { |
305 rule->msize *= 3; | 305 rule->msize++; |
306 rule->msize *= 3; | |
307 } | |
306 | 308 |
307 if (cf->args->nelts > 3) { | 309 if (cf->args->nelts > 3) { |
308 if (ngx_strcmp(value[3].data, "last") == 0) { | 310 if (ngx_strcmp(value[3].data, "last") == 0) { |
309 rule->last = 1; | 311 rule->last = 1; |
310 | 312 |