Question
Nginx how to remove www from url?
Hello - Having a bit of trouble setting up a permanent redirect from "www.getm15.com" to "getm15.com". After following this article https://www.digitalocean.com/community/articles/how-to-create-temporary-and-permanent-redirects-with-apache-and-nginx I'm now getting this error "Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
Here's the NGINX config file I edited in /etc/nginx/sites-available/default http://pastebin.com/esVxiEbu. My droplet is Ruby on Rails on Ubuntu 12.10 (Nginx + Unicorn). Any help would be much appreciated thanks.
Add a comment
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.
×