Welcome! Log In Create A New Profile

Advanced

Nginx OR for 2 differents location

Posted by Vincent 
Vincent
Nginx OR for 2 differents location
May 07, 2018 02:30PM
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Igor A. Ippolitov
Re: Nginx OR for 2 differents location
May 07, 2018 03:10PM
Hello,

You can try
location ~ (render_img.php|^/url_rewriting.php$) {}
Which should effectively do the same

On 07.05.2018 15:24, Vincent wrote:
>
> Hello,
>
> I have 2 location blocks like that:
>
>
> |location =/url_rewriting.php {|
>
> and
>
>
> ||||location ~render_img.php {||
>
>
> with exactly the same content.
>
>
> Is it possible to use an OR to have only one location block?
>
> Thanks in advance,
>
> Vincent.
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Vincent
Re: Nginx OR for 2 differents location
May 07, 2018 10:00PM
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login