Welcome! Log In Create A New Profile

Advanced

Re: Location directive not working

Alex
March 26, 2014 08:32AM
Francis -

Thank you for your reply!

This OR regex : location ~* \.(gif|jpg|jpeg)$

works on jogs and gifs, why can not I use the same syntax for the URIs as
I am doing it?

Does it mean then that I have to define each location block one by one
with different URIs even though all the information inside the location
block is the same? Is there a regex to match the OR condition just as you
do with jogs?


Thanks for your help!


> On Wed, Mar 26, 2014 at 12:30:21AM -0000, Alex wrote:
>
> Hi there,
>
>> It works only when I include
>> one item, when I do (videos|events) it does not work
>>
>> location ^~ /(videos|events) {
>
> That is not a regex location. A request for /videos/ will not match it.
>
> http://nginx.org/r/location
>
> f
> --
> Francis Daly francis@daoine.org
>
> _______________________________________________
> 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
Subject Author Posted

Location directive not working

Alex March 25, 2014 08:32PM

Re: Location directive not working

Francis Daly March 26, 2014 05:04AM

Re: Location directive not working

Alex March 26, 2014 08:32AM

Re: Location directive not working

Francis Daly March 26, 2014 09:36AM

Re: Location directive not working

Alex March 26, 2014 12:46PM

Re: Location directive not working

Francis Daly March 26, 2014 01:16PM

Re: Location directive not working

B.R. March 26, 2014 01:40PM

Re: Location directive not working

Alex March 26, 2014 05:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 200
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready