301 Redirect from www version to non www.
Jeff Dyke
jeff.dyke at gmail.com
Fri Mar 23 19:22:32 UTC 2018
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.
On Fri, Mar 23, 2018 at 3:06 PM, lichandro <nginx-forum at forum.nginx.org>
wrote:
> Hello I have to redirect my whole traffic to the non www version of my
> website. I have the http2 SSL free form cloudflare. I did this in my .conf
> file and It doesn't work.
>
> server {
> listen 80;
> server_name www.kasacja-aut.pl kasacja-aut.pl
> https://www.kasacja-aut.pl;
> return 301 https://kasacja-aut.pl$request_uri;
> }
>
> Posted at Nginx Forum: https://forum.nginx.org/read.
> php?2,279183,279183#msg-279183
>
> _______________________________________________
> 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/20180323/a56e71d2/attachment-0001.html>
More information about the nginx
mailing list