Welcome! Log In Create A New Profile

Advanced

Re: Skip Location Based On Query String Parameter?

January 04, 2015 09:46AM
I found soemthing that I think works, but it feels very hackish:

location ~ ^/([a-zA-Z0-9\-]+)/ {
error_page 418 = @apache; #proxy pass
recursive_error_pages on;
if ($arg_nc = 1) {
return 418;
}
try_files /cache/$1.html @apache;
}

Is this the best (only?) way to bypass a location based on query sting?
Subject Author Posted

Skip Location Based On Query String Parameter?

nrahl November 13, 2014 06:20AM

Re: Skip Location Based On Query String Parameter?

Francis Daly November 13, 2014 06:20PM

Re: Skip Location Based On Query String Parameter?

nrahl January 04, 2015 09:12AM

Re: Skip Location Based On Query String Parameter?

nrahl January 04, 2015 09:46AM

Re: Skip Location Based On Query String Parameter?

Francis Daly January 07, 2015 06:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 242
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