URI pattern baffling problem

Vitaly Tskhovrebov vt at chgk.info
Mon Feb 7 17:51:46 MSK 2011


On 2/7/2011 5:43 PM, Gregory wrote:
> I am trying to work out a regular expression.What I am looking for is to
> redirect any request that does not match a specific URI pattern.

May be try to mention correct patterns as locations, and after that this 
rewrite rule?

Also:

> "^documents/([a-z0-9\-]{36})pages/([a-z0-9\-]{36})items/([a-z0-9\-]{36})$"

missed some slashes and capitals.

"^documents/([A-z0-9\-]{36})/pages/([A-z0-9\-]{36})/items/([A-z0-9\-]{36})$".

Cheers.



More information about the nginx mailing list