<div dir="ltr">A couple things here guess. Is 80 even open in the firewall? Also could cloudflare be picking up 80 and redirecting to https, also this won't solve your problem, but having a server name prefixed with https is not valid, it may pass a configtest, but not sure that it would every match.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 23, 2018 at 3:06 PM, lichandro <span dir="ltr"><<a href="mailto:nginx-forum@forum.nginx.org" target="_blank">nginx-forum@forum.nginx.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello I have to redirect my whole traffic to the non www version of my<br>
website. I have the http2 SSL free form cloudflare. I did this in my .conf<br>
file and It doesn't work.<br>
<br>
server {<br>
listen 80;<br>
server_name <a href="http://www.kasacja-aut.pl" rel="noreferrer" target="_blank">www.kasacja-aut.pl</a> <a href="http://kasacja-aut.pl" rel="noreferrer" target="_blank">kasacja-aut.pl</a><br>
<a href="https://www.kasacja-aut.pl" rel="noreferrer" target="_blank">https://www.kasacja-aut.pl</a>;<br>
return 301 <a href="https://kasacja-aut.pl" rel="noreferrer" target="_blank">https://kasacja-aut.pl</a>$<wbr>request_uri;<br>
}<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,279183,279183#msg-279183" rel="noreferrer" target="_blank">https://forum.nginx.org/read.<wbr>php?2,279183,279183#msg-279183</a><br>
<br>
______________________________<wbr>_________________<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/<wbr>mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>