Redirect request based on source $scheme !!

shahzaib shahzaib shahzaib.cb at
Wed Nov 11 09:36:56 UTC 2015


   Is there a way we can serve $scheme (HTTP/HTTPS) based on source request
? Such as :

if --> sends request to (as
it'll fail due to cross  $scheme conflict)

So will check that the request invoked using https
$scheme and it'll redirect to
for that particular


Is that possible guys ?

Thanks in Advance !


Need to send me private email? I use Virtru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list