upstream local-[APPLICATION]{ server 127.0.0.1:[PORT]; } server { listen 8080; server_name [APPLICATION].*; location / { proxy_pass http://local-[APPLICATION]; proxy_set_header Host $http_host; } }