Strange, When post is specified in listen directive: server { listen 80; ... } it works well with double slashes. But when using domain name in listen directive server { listen *****.com; ... } it removes double slashes. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,113427,129135#msg-129135