> 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

                                          
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to