nginx reverse proxy to a set of pages with an additional path in the URL based on http referer?
问题 I have a 3rd-party ui server running in a docker container, exposed on port 8080. It seems to expect to load resources with an absolute path: http://localhost:8080/index.html , http://localhost:8080/js/some_jsfiles etc. I want to create a reverse proxy to it so it looks like it is coming from a different path: https://myserver.com/stormui/index.html , https://myserver.com/stormui/js/... first I tried location /stormui/ { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;