<div dir="ltr">you can create separate server blocks for each domain</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 11, 2015 at 11:36 AM, shahzaib shahzaib <span dir="ltr"><<a href="mailto:shahzaib.cb@gmail.com" target="_blank">shahzaib.cb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>   Is there a way we can serve $scheme (HTTP/HTTPS) based on source request ? Such as :<br><br>if <a href="https://ad.domain.com" target="_blank">https://ad.domain.com</a> --> sends request to <a href="http://ourdomain.com" target="_blank">http://ourdomain.com</a> (as it'll fail due to cross  $scheme conflict)</div><div><br></div><div>So <a href="http://ourdomain.com" target="_blank">http://ourdomain.com</a> will check that the request invoked using https $scheme and it'll redirect <a href="http://ourdomain.com" target="_blank">http://ourdomain.com</a> to <a href="https://ourdomain.com" target="_blank">https://ourdomain.com</a> for that particular <a href="http://ad.domain.com" target="_blank">ad.domain.com</a>.</div><div><br></div><div>---------------------------------------------------------</div><div><br></div><div>Is that possible guys ?<br><br>Thanks in Advance !<br><br>Regards.</div><div>Shahzaib<br><br>
<br>
<div lang="klingon" style="color:rgb(146,146,146)!important;display:block">
        Need to send me private email? I use <a lang="klingon" style="color:#929292!important" href="https://www.virtru.com/how-it-works/?utm_medium=Email&utm_source=Plugin%20Users&utm_campaign=Footer" target="_blank">Virtru</a>.
    <div></div>
</div><input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"expires":false},"attachments":{}}"></div></div>
<br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br></div>