Nginx OR for 2 differents location
Igor A. Ippolitov
iippolitov at nginx.com
Mon May 7 13:03:28 UTC 2018
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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180507/035916ea/attachment.html>
More information about the nginx
mailing list