By adrianagrant
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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello there, <br>in your second server block you need to specify a server_name: <br> <br>http://pastebin.com/Quv30UAa
Thanks Santiago, now the redirect is working but I’m getting an error I never had before “no implicit conversion of nil into String”. You can see it at http://getm15.com/. Any thoughts? <br> <br>I tried reinstalling pristine versions of my gem. Also tried adding: <br>ActionController::Base.config.relative_url_root = ‘’ <br> <br>to application.rb. Adding config.relative_url_root = “” to my Song controller also didn’t work
That’s an error with your app, it’s not related to nginx. <br><pre> {‘title’:‘<%= songscm.title %>’, ‘url’:‘<%= songscm.youtube_url %>’},</pre> <br>Either songscm.title or songscm.youtube_url (or both) is null apparently.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.