Redirecting https www domain to non-www domain with NGINX.
I have been looking but I am unable to find a solution. I have set up SSL certificates for my domain and the http traffic redirects to https. What I would like is https://www.example.com to redirect to https://example.com.
Any help would be appreciated.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.