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@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@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx