Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - English
> Topic
Advanced
Re: Skip Location Based On Query String Parameter?
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
nrahl
January 04, 2015 09:46AM
Registered: 10 years ago
Posts: 16
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?
Reply
Quote
RSS
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: 302
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018