oh my... i was fooled by $request_uri which returns the parent uri. i understand that this is intended behavior. sorry! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,240968,240978#msg-240978