Redirect request based on source $scheme !!
Lukas Tribus
luky-37 at hotmail.com
Wed Nov 11 12:49:32 UTC 2015
> shahzaib1232 Wrote:
> -------------------------------------------------------
>> So we're thinking to have some condition in place that if the request
>> for
>> HTTP embedded link comes from any HTTPS domain , nginx will detect
>> that
>> source $scheme and redirect that request to HTTPS.
What you need is to look at is the scheme indicated in the Referer header.
However be advised that there are certain combinations where the Referer
is blank (a HTTP frame embedded in a HTTPS site).
Lukas
More information about the nginx
mailing list