Found my problem. I was sending the wrong host (duh). Setting the header host with $host would send to my swiftiply server the host "blabla.mynginxserver.com" which is not recognized and so returns the default application. -- Posted via http://www.ruby-forum.com/.