Igor, I've already replaced it to proxy_pass http://127.0.0.1:8080; after your first post. And now when I change it to: server { listen 80; ... } It removes double slashes. With domain name it works just well. Thanks, Alex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,113427,131146#msg-131146