Location directive not working

Alex alex.thegreat at ambix.net
Wed Mar 26 16:44:49 UTC 2014


Francis -

What I meant was that I was using an OR statement as it is used in the jpg
example.  If I do this:

location ^~ /videos/ { # it works

location ^~ /(videos|events) { #it does not work.  So I assume is the OR
that does not work.

Any thoughts?

Thanks,

Alex

> On Wed, Mar 26, 2014 at 12:31:30PM -0000, Alex wrote:
>
> Hi there,
>
>> This OR regex :  location ~* \.(gif|jpg|jpeg)$
>
> Which part of that line says that it is a regex?
>
> (The answer is in the documentation.)
>
>> works on jogs and gifs, why can not I use the same syntax for the URIs
>> as
>> I am doing it?
>
> If you used the same syntax, it would probably work.
>
>> >> location ^~ /(videos|events) {
>
> is not the same syntax.
>
> Good luck with it,
>
> 	f
> --
> Francis Daly        francis at daoine.org
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



More information about the nginx mailing list