You need to use either: location /thelocation { proxy_pass http://localhost:8080; } or if for some reason that's not possible, then: location /thelocation/(.*) { proxy_pass http://localhost:8080/$1; } Best regards, Piotr Sikora < piotr.sikora at frickle.com >