Welcome! Log In Create A New Profile

Advanced

Re: Location directive not working

Francis Daly
March 26, 2014 01:16PM
On Wed, Mar 26, 2014 at 04:44:49PM -0000, Alex wrote:

Hi there,

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

The documentation is at http://nginx.org/r/location.

It's all useful, but the fourth sentence is particularly relevant.

> >> This OR regex : location ~* \.(gif|jpg|jpeg)$
> >
> > Which part of that line says that it is a regex?

When you know the answer to that question, you'll probably see that the
various squiggles after the word "location" aren't just random.

f
--
Francis Daly francis@daoine.org

_______________________________________________
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: 301
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