URI pattern baffling problem

Gregory Agerba gregory.agerba at gmail.com
Tue Feb 8 12:41:35 MSK 2011


Ok you are right, I did also copied it wrong, anyway, this one don't work
any better anyway:

if ($request_uri !~*
"^documents/([A-Z0-9-]{36})/pages/([A-Z0-9-]{36})/items/([A-Z0-9-]{36})" ) {
                        rewrite ^ http://www.google.com/ permanent;
}

Which does contain all slashes. The expression never match. I am trying with
the following URL
http://www.domain.tld/documents/C49775E0-4C80-0001-22B1-13B052801E5C/pages/C4977880-4C80-0001-22B1-13B052801E5C/items/C4977880-4C80-0001-22B1-13B052801E5C

Gregory

2011/2/8 Vitaly Tskhovrebov <vt at chgk.info>

> Because, as me and Splitice mentioned before, your regexp is not correct
> (at least I cannot see slashes between hash and pages). Fix it.
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110208/17ce2d54/attachment.html>


More information about the nginx mailing list