When I log in to my site WITHOUT www. it works fine, but whenever I visit the site with www. the same username and password don’t seem to work. I added www as a A record in the DNS, without it I could even only visit the website without www.
It’s hosted on Ubuntu 14.04 and the application is written in Ruby on Rails.
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.