ssl - Redirect https://www to https:// -
i try redirect https://www.subdomain.website.com https://subdomain.website.com - have "your connection not private" petenetlive.com/kb/media/0000992/00001.png it's ok without www because it's managed cloudflare. know why ? server { listen 443; server_name www.irc.mywebsite.lol; return 301 https://irc.mywebsite.lol; ssl on; ssl_certificate /etc/nginx/ssl/server.crt; ssl_certificate_key /etc/nginx/ssl/server.key; } server { server_name www.irc.mywebsite.lol; rewrite ^(.*) https://irc.mywebsite.lol$1 permanent; } server { # port listen 80; # hostname server_name irc.mywebsite.lol; # logs (acces et erreurs) access_log /var/log/nginx/irc.mywebsite.lol.access.log; error_log /var/log/nginx/irc.mywebsite.lol.error.log; location / { proxy_set_header host $host; proxy_set_header x-real-ip $...