Nginx - Infinite reload when adding variable in proxy_pass
问题 I am working with Nginx on Docker and I want to assign each user to a different port. First, without adding anything, my code works fine: location /viewer/ { proxy_pass http://xx.xxx.xxx.xxx:18080/Road/; } Going to "/viewer/" in URL will proxy to the port 18080, just as expected. But if I add any variable to the proxy_pass like: set $test 1; proxy_pass http://xx.xxx.xxx.xxx:18080/Road/?$test; then, first of all, the static files do not load anymore and I have to add lines like these: location