Sorry vice versa :) With domain name it works well. But when port is specified in listen it removes double slashes. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,113427,129139#msg-129139