auto detect https redirect in rewrite
Igor Sysoev
13 years ago
356 | 356 | last = 1; |
357 | 357 | } |
358 | 358 | |
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 | ||
359 | 365 | if (cf->args->nelts == 4) { |
360 | 366 | if (ngx_strcmp(value[3].data, "last") == 0) { |
361 | 367 | last = 1; |