On Thu, Nov 16, 2017 at 09:59:49PM +0100, Ruben wrote: Hi there,
> location / { > proxy_pass http://$instance; > } > The problem is, when I go to http://example.com/cdn/test/test.jpg in the > browser, it redirects me to http://instance-001/cdn/test/test.jpg. Which is > ofcourse not correct. It should proxy the docker service with name > instance-001. Are you reporting that nginx creates the redirect, or that nginx passes along the redirect that the upstream web server creates? The two cases probably have different fixes. What do the (nginx and upstream web server) logs say? f -- Francis Daly fran...@daoine.org _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx