Re: Nginx location - Distinguish requests by arguments or queries

2020-02-25 Thread Francis Daly
On Tue, Feb 25, 2020 at 07:05:05AM -0500, stmx38 wrote: Hi there, > We have a case when we should permit different methods on the same location > but different requests. The nginx model does "location" matching without reference to the query string. But you may be able to build your own "good-e

Nginx location - Distinguish requests by arguments or queries

2020-02-25 Thread stmx38
Hello, We have a case when we should permit different methods on the same location but different requests. For location /test we should permit only POST, for /test?doc we should permit only GET methods. Our config example: location /test { error_page 403 =405 /custom-error; limi