[PATCH] Added support for client_scheme_in_redirect directive
mdounin at mdounin.ru
Wed Mar 18 16:22:02 UTC 2015
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?
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.
More information about the nginx-devel