Welcome! Log In Create A New Profile

Advanced

Re: /location and or IF statment

Joshua Zhu
July 23, 2009 03:41AM
1) Use multiple server blocks, as what Michael suggested.
2) Use variables, e.g.:
location ~* (a|b) {
set $var $1;
rewrite ^ /test$var.html break;
}
Please see http://wiki.nginx.org/NginxHttpRewriteModule for more
information :)


On Thu, Jul 23, 2009 at 9:55 AM, vburshteyn<nginx-forum@nginx.us> wrote:
> so in that case one more stupid question (sorry i am windows tech who is making the switch)
>
> so if i have a statment like
>
> location ~* (a|b) the search will terminate as soon as it finds either a or b.
Subject Author Posted

/location and or IF statment

vburshteyn July 22, 2009 08:26PM

Re: /location and or IF statment

mike July 22, 2009 08:35PM

Re: /location and or IF statment

vburshteyn July 22, 2009 09:05PM

Re: /location and or IF statment

mike July 22, 2009 09:19PM

Re: /location and or IF statment

vburshteyn July 22, 2009 09:55PM

Re: /location and or IF statment

Joshua Zhu July 23, 2009 03:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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