diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2016-12-21 23:10:51 +0300 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2016-12-21 23:10:51 +0300 |
| commit | dd70e741970c841a1555911f6468b39870c0607b (patch) | |
| tree | eaefda6b80598c554414e6b147e93c6ecdbf31c5 /src/http/ngx_http_core_module.h | |
| parent | d1f524d0b3e013f23bb9456aa4f2c35916934c27 (diff) | |
| download | nginx-dd70e741970c841a1555911f6468b39870c0607b.tar.gz nginx-dd70e741970c841a1555911f6468b39870c0607b.tar.bz2 | |
Core: relative redirects (closes #1000).
The current version of HTTP/1.1 standard allows relative references in
redirects (https://tools.ietf.org/html/rfc7231#section-7.1.2).
Allow this form for redirects generated by nginx by introducing the new
directive absolute_redirect.
Diffstat (limited to 'src/http/ngx_http_core_module.h')
| -rw-r--r-- | src/http/ngx_http_core_module.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index ade9abbe5..237cc5cfd 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -385,6 +385,7 @@ struct ngx_http_core_loc_conf_s { ngx_flag_t tcp_nopush; /* tcp_nopush */ ngx_flag_t tcp_nodelay; /* tcp_nodelay */ ngx_flag_t reset_timedout_connection; /* reset_timedout_connection */ + ngx_flag_t absolute_redirect; /* absolute_redirect */ ngx_flag_t server_name_in_redirect; /* server_name_in_redirect */ ngx_flag_t port_in_redirect; /* port_in_redirect */ ngx_flag_t msie_padding; /* msie_padding */ |
