Welcome! Log In Create A New Profile

Advanced

Re: location regex issue

Boyko Yordanov
April 15, 2011 07:14AM
Guys,

Further issue:

I tried to use around 2000 pages in the same location block like this:

location ~* (^/browse|^/page2|^/page3|... etc ^/page2000) {

And of-course I'm getting:

nginx: [emerg] too long parameter

Can I catch all these pages with a single location directive or I should separate them in different locations? Also, what is the allowed size for location parameter?

Boyko

On Apr 15, 2011, at 1:18 PM, Boyko Yordanov wrote:

> Thanks Igor,
>
> Actually it was about caching - I needed to cache /browse/ only and not /browse/?stuff
>
> I used proxy_no_cache $args to make sure cached response wont be used when $args are present. Seems to work well, logging only MISSed responses, no cache HITs.
>
> Boyko
>
> On Apr 15, 2011, at 1:02 PM, Igor Sysoev wrote:
>
>> On Fri, Apr 15, 2011 at 12:39:39PM +0300, Boyko Yordanov wrote:
>>
>> location = /browse/ {
>> if ($args != "") {
>> return 404;
>> }
>> ...
>> }
>>


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

location regex issue

Boyko Yordanov April 15, 2011 05:14AM

Re: location regex issue

edogawaconan April 15, 2011 05:20AM

Re: location regex issue

Boyko Yordanov April 15, 2011 05:24AM

Re: location regex issue

edogawaconan April 15, 2011 05:30AM

Re: location regex issue

Boyko Yordanov April 15, 2011 05:40AM

Re: location regex issue

Igor Sysoev April 15, 2011 06:04AM

Re: location regex issue

Boyko Yordanov April 15, 2011 06:20AM

Re: location regex issue

Boyko Yordanov April 15, 2011 07:14AM

Re: location regex issue

Igor Sysoev April 15, 2011 07:26AM

Re: location regex issue

Igor Sysoev April 15, 2011 07:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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