I've found the problem. Thank you everybody for the tip about nginx -T The web app that I use "forge" to deploy servers seemed to add another redirect hidden inside of /etc/nginx/forge-conf/before/ssl_redirect.conf which was redirecting port 80 example.com to https://example.com
My server block was correct, it was just this file that was adding an additional redirect. Thanks again Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267700,267881#msg-267881 _______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
