<div dir="ltr">Hi all,<div>I had an nginx as a reserve proxy, with many web sites behind. And the nginx listen in 443(https) and 80(http).</div><div><br></div><div>But not all my sites behind support https, so in some sites ,I only listen 80, like this:</div><div><i>  Â  server {<br>  Â  Â  listen 80;<br>  Â  Â  listen [::]:80;<br>  Â  Â  server_name Â <a href="http://nossl.abc.com/" target="_blank">nossl.abc.com</a>;<br>  Â  Â  location / {<br>  Â  Â  Â  proxy_pass_header Server;<br>  Â  Â  Â  proxy_set_header Host $http_host;<br>  Â  Â  Â  proxy_set_header X-Real-IP $remote_addr;<br>  Â  Â  Â  proxy_set_header X-Scheme $scheme;<br>  Â  Â  Â  proxy_pass <a href="http://nossl/" target="_blank">http://nossl</a>;<br>  Â  Â  Â }<br>  Â  }</i><br></div><div><br clear="all"><div>And I got a problem here, when I using <a href="http://nossl.abc.com/" target="_blank">http://nossl.abc.com</a>, it works fine. But some browser( like edge in a newly installed Windows 11), it will auto redirect to the https site(<a href="https://nossl.abc.com/" target="_blank">https://nossl.abc.com</a>), then we got a default site of my nginx instead of <a href="http://nossl.abc.com/" target="_blank">nossl.abc.com</a></div><div><br></div><div>So, can I redirect the request, when user open <a href="https://nossl.abc.com/" target="_blank">https://nossl.abc.com</a>, the will be redirect to <a href="http://nossl.abc.com/" target="_blank">http://nossl.abc.com</a>?</div><div><br></div><div>Thanks.</div></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">from:baalchina</div></div>