Mercurial > hg > nginx
diff src/http/ngx_http_core_module.h @ 6852:d15172ebb400
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.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 21 Dec 2016 23:10:51 +0300 |
parents | e38e9c50a40e |
children | 25203fc377fb |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.h Wed Dec 21 22:01:24 2016 +0300 +++ b/src/http/ngx_http_core_module.h Wed Dec 21 23:10:51 2016 +0300 @@ -385,6 +385,7 @@ 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 */