Welcome! Log In Create A New Profile

Advanced

Re: disable "proxy store" on "?start=1" param

Maxim Dounin
August 11, 2014 06:38PM
Hello!

On Mon, Aug 11, 2014 at 02:13:53PM -0400, double wrote:

> Hello,
>
> Is there a good way to disable "proxy_store", if the parameter "start=" is
> set?
> The down below configuration works, but I get an error message:
> "[crit] ... open() "/dev/null.0000000004" failed (13: Permission denied)
> while reading upstream ..."
> Using "set $proxy_store off;" won't work, because it is handles as a
> string.

Try something like this instead:

location /store/ {
if ($arg_start) {
rewrite ^/store/(.*) /nostore/$1 last;
}

proxy_pass ...
proxy_store on;
}

location /nostore/ {
# no proxy_store here
proxy_pass ...
}

--
Maxim Dounin
http://nginx.org/

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

Re: disable "proxy store" on "?start=1" param

Maxim Dounin August 11, 2014 06:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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