Welcome! Log In Create A New Profile

Advanced

Re: merge two location site to 1 location

António P. P. Almeida
January 07, 2011 09:18AM
On 7 Jan 2011 14h00 WET, nginx-forum@nginx.us wrote:

> Now i'll write two sections of location as follow: location =/aaa{}
> location =/BBB{} But I want to write the two sections to one
> location? eg. location =/[aaa,BBB]{} , but it's wrong, and does
> someone know how to write it? Thanks in advance.

Yes but *without* exact matching like you have. AFAIK you need a
regex.

location ~* ^/(?:aaa|BBB)$ {
...
}
--- appa


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

merge two location site to 1 location

kevinew January 07, 2011 09:00AM

Re: merge two location site to 1 location

António P. P. Almeida January 07, 2011 09:18AM

Re: merge two location site to 1 location

António P. P. Almeida January 07, 2011 09:40AM

Re: merge two location site to 1 location

kevinew January 07, 2011 12:06PM

Re: merge two location site to 1 location

edogawaconan January 07, 2011 09:22AM

Re: merge two location site to 1 location

kevinew January 07, 2011 12:12PM

Re: merge two location site to 1 location

Maxim Dounin January 07, 2011 12:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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