Location directive not working

Francis Daly francis at daoine.org
Wed Mar 26 17:14:56 UTC 2014


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 at daoine.org



More information about the nginx mailing list