Welcome! Log In Create A New Profile

Advanced

Re: URI pattern baffling problem

Gregory Agerba
February 08, 2011 04:44AM
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
Subject Author Posted

URI pattern baffling problem

Gregory February 07, 2011 09:48AM

Re: URI pattern baffling problem

vt February 07, 2011 09:54AM

Re: URI pattern baffling problem

Splitice February 07, 2011 10:10AM

Re: URI pattern baffling problem

Gregory Agerba February 07, 2011 10:14AM

Re: URI pattern baffling problem

vt February 08, 2011 03:58AM

Re: URI pattern baffling problem

Gregory Agerba February 08, 2011 04:44AM

Re: URI pattern baffling problem

António P. P. Almeida February 08, 2011 05:06AM

Re: URI pattern baffling problem

Gregory Agerba February 08, 2011 05:58AM

Re: URI pattern baffling problem

Igor Sysoev February 08, 2011 08:14AM

Re: URI pattern baffling problem

Gregory Agerba February 08, 2011 08:22AM

Re: URI pattern baffling problem

Igor Sysoev February 08, 2011 09:04AM

Re: URI pattern baffling problem

Gregory Agerba February 08, 2011 09:12AM

Re: URI pattern baffling problem

António P. P. Almeida February 08, 2011 08:32AM

Re: URI pattern baffling problem

Igor Sysoev February 08, 2011 09:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 125
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