Welcome! Log In Create A New Profile

Advanced

Re: Nginx location - Distinguish requests by arguments or queries

February 27, 2020 02:20PM
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 (^~): https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms

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 here.

Thank you for help and for the ready solution!
Subject Author Posted

Nginx location - Distinguish requests by arguments or queries

stmx38 February 25, 2020 07:05AM

Re: Nginx location - Distinguish requests by arguments or queries

Francis Daly February 25, 2020 12:08PM

Re: Nginx location - Distinguish requests by arguments or queries

Francis Daly February 26, 2020 03:50AM

Re: Nginx location - Distinguish requests by arguments or queries

stmx38 February 27, 2020 02:20PM

Re: Nginx location - Distinguish requests by arguments or queries

Francis Daly February 27, 2020 06:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 272
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready