Nginx location - Distinguish requests by arguments or queries

stmx38 nginx-forum at
Thu Feb 27 19:20:45 UTC 2020

Hello Francis,

It seems that your solution working as expected and I have started to test
it. Also, have some questions here:

1. "~*" to be "~^"
The first one looks like Nginx regexp we can use for locations, but the
second one not (^~):

2. It seems that the order of records in map is important. We pass required
queries with args, we block then all queries with args and allow without
args a then default value is applied. Maybe you can provide more details

Thank you for help and for the ready solution!

Posted at Nginx Forum:,287101,287136#msg-287136

More information about the nginx mailing list