Redirect request based on source $scheme !!
Avraham Serour
tovmeod at gmail.com
Wed Nov 11 10:10:39 UTC 2015
you can create separate server blocks for each domain
On Wed, Nov 11, 2015 at 11:36 AM, shahzaib shahzaib <shahzaib.cb at gmail.com>
wrote:
> Hi,
>
> Is there a way we can serve $scheme (HTTP/HTTPS) based on source
> request ? Such as :
>
> if https://ad.domain.com --> sends request to http://ourdomain.com (as
> it'll fail due to cross $scheme conflict)
>
> So http://ourdomain.com will check that the request invoked using https
> $scheme and it'll redirect http://ourdomain.com to https://ourdomain.com
> for that particular ad.domain.com.
>
> ---------------------------------------------------------
>
> Is that possible guys ?
>
> Thanks in Advance !
>
> Regards.
> Shahzaib
>
>
> Need to send me private email? I use Virtru
> <https://www.virtru.com/how-it-works/?utm_medium=Email&utm_source=Plugin%20Users&utm_campaign=Footer>.
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20151111/1bcec59a/attachment.html>
More information about the nginx
mailing list