Welcome! Log In Create A New Profile

Advanced

Re: OR conditional usage behavior changed in 0.8.x?

December 06, 2010 07:12AM
On Mon, Dec 06, 2010 at 03:45:02AM -0500, TECK wrote:

> Hi all,
>
> I used to be able to use the OR conditional this way:
> location = /(40x|50x).html {
> allow all;
> }
>
> It looks like I cannot use it anymore in 0.8.53 version. Can you please
> let me know what is the new type of compact condition I should use
> instead?

It never worked. This works:

location ~ ^/(40x|50x).html {

However, I do not recommend to use regexs if they can be avoided:
they complicate configuration maintence.


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

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

OR conditional usage behavior changed in 0.8.x?

TECK December 06, 2010 03:45AM

Re: OR conditional usage behavior changed in 0.8.x?

Igor Sysoev December 06, 2010 07:12AM

Re: OR conditional usage behavior changed in 0.8.x?

Maxim Dounin December 06, 2010 07:22AM

Re: OR conditional usage behavior changed in 0.8.x?

TECK December 07, 2010 05:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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