Cool, that works! I don't understand why though, why is the uri urldecoded in my example but not in your example? Also, I actually want the dns resolution to take place because I'm running in an AWS environment.. Thanks / Jonas Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248124,248134#msg-248134