Solved, and not at all nginx-related. There was a funny little redirection method in the rails app that wasn't expecting "dev2".by shakar - Other discussion
Hi, Thank you for any help on this matter. I've enabled debugging output for the error.log, and here is a snippet: http://pastebin.ca/2662543 (attached here as well) As is shown there, the address seems ok for a while ("dev2.my_domain.com"), and the first appearance of 'www' when handling the request appears with: http scgi status 302 "302 Found" http scgi header:by shakar - Other discussion