Set proxy_pass in nginx based on request_method
问题 I have two application and a nginx server on top of that. I want to proxy all GET requests coming on nginx to one app running on http://127.0.0.1:9101/ and proxy all other request methods to http://10.41.115.241:8000/ I have tried couple of options but none worked I have tried using limit_exempt location /api/v1/executions { error_page 502 = @apiError; rewrite ^/api/(.*) /$1 break; proxy_pass http://127.0.0.1:9101/; limit_except PUT POST DELETE { proxy_pass http://10.41.115.241:8000/; } proxy