Welcome! Log In Create A New Profile

Advanced

Re: about location

April 16, 2010 01:28AM
On Fri, Apr 16, 2010 at 11:05:59AM +0800, 李睿 wrote:

> Can i use this sentence in location ?
>
> if ($request_uri ~* "^/(list|small|big)_.*") {
> expires 1m;
> }

You should use just location:

location ~* "^/(list|small|big)_.*") {
expires 1m;
}

or better several static prefix locations:

location /list_ {
expires 1m;
}

location /small_ {
expires 1m;
}

location /big_ {
expires 1m;
}


--
Igor Sysoev
http://sysoev.ru/en/

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

about location

李睿 April 16, 2010 01:26AM

Re: about location

Igor Sysoev April 16, 2010 01:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 204
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready