Klaus Demo nginx / 0b5e77f
auto detect https redirect in rewrite Igor Sysoev 13 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
356356 last = 1;
357357 }
358358
359 if (ngx_strncmp(value[2].data, "https://", sizeof("https://") - 1) == 0) {
360 regex->status = NGX_HTTP_MOVED_TEMPORARILY;
361 regex->redirect = 1;
362 last = 1;
363 }
364
359365 if (cf->args->nelts == 4) {
360366 if (ngx_strcmp(value[3].data, "last") == 0) {
361367 last = 1;