Welcome! Log In Create A New Profile

Advanced

Re: URI pattern baffling problem

February 08, 2011 09:04AM
On Tue, Feb 08, 2011 at 02:20:00PM +0100, Gregory Agerba wrote:

> Hi Igor,
>
> Yes, but my rule is only acting as a simple *Access Control List* which
> expect a very special pattern to match and anything else should be discarded
> with an error message/page.
>
> The given pattern is not accessed directly by users, it’s an application
> that send requests to that given URI-pattern and if the pattern doesn’t
> match (thus in my case it means it's a valid request), then the request is
> processed further in Passenger.
>
> In my understanding if I am supposed to send the positive matching I should
> forward that somewhere and I will create a loop and this explains why I do
> the opposite here.

You should enable Passenger inside

location ~* "^/documents/(?:[A... " {
...
}

> Gregory
>
>
> 2011/2/8 Igor Sysoev <igor@sysoev.ru>
>
> >
> > You should think not in negative way:
> >
> > if ($request_uri !~* "^/documents/(?:[A... ") {
> > {
> > rewrite ^ http://www.google.com/ permanent;
> > }
> >
> > but in positive way:
> >
> > location ~* "^/documents/(?:[A... " {
> > ...
> > }
> >
> > location / {
> > rewrite ^ http://www.google.com/ permanent;
> > }
> >
> > --
> > Igor Sysoev
> > http://sysoev.ru/en/
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://nginx.org/mailman/listinfo/nginx
> >

> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
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: 143
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready