$ 0 0 Solved, and not at all nginx-related. There was a funny little redirection method in the rails app that wasn't expecting "dev2".