Map a public application hostname to a local service
Example input
app.example.com
http://127.0.0.1:3000Expected result
proxy_pass http://127.0.0.1:3000;Enter the public hostname and the internal upstream address. The shown line is one part of the resulting server configuration, not a complete deployable file. Confirm that Nginx can reach that address from its own network environment: localhost inside a container can refer to the proxy container itself rather than the application. Check the complete output with nginx -t before a controlled reload.