[PATCH] Added support for client_scheme_in_redirect directive
Maxim Dounin
mdounin at mdounin.ru
Wed Mar 18 16:22:02 UTC 2015
Hello!
On Sun, Mar 15, 2015 at 04:07:11AM -0700, Kyle Ibrahim wrote:
> Currently, there is no way way to control the scheme which will be used in
> nginx-issued redirects. This is a problem when the client is potentially
> using a different scheme than nginx due to a SSL terminating load balancer.
> As some client requests may have started over http and some over https,
> we'd like to way to dynamically set the proper client scheme.
>
> This is a patch which adds a directive `client_scheme_in_redirect` to
> complement `server_name_in_redirect` and `port_in_redirect`.
Have you considered doing something like "relative_redirects on|off"
instead, as previously suggested[1]?
I believe it will resolve the problem as well, and will address
additional problems too. It is also expected to require simplier
and more effective code.
[1] http://mailman.nginx.org/pipermail/nginx-devel/2015-March/006608.html
--
Maxim Dounin
http://nginx.org/
More information about the nginx-devel
mailing list