Welcome! Log In Create A New Profile

Advanced

Re: how to match these urls?

kevin
August 14, 2010 03:22PM
On Sat, Aug 14, 2010 at 12:01 PM, Edho P Arief <edhoprima@gmail.com> wrote:

> On Sun, Aug 15, 2010 at 1:49 AM, kevin <kevincastiglione@gmail.com> wrote:
> > On Sat, Aug 14, 2010 at 11:42 AM, kevin <kevincastiglione@gmail.com>
> wrote:
> >>
> >> On Sat, Aug 14, 2010 at 10:07 AM, Igor Sysoev <igor@sysoev.ru> wrote:
> >>>
> >>> On Fri, Aug 13, 2010 at 07:43:58PM -0700, kevin wrote:
> >>>
> >>> > requests like these are hitting my server, and i want to catch these
> >>> > requests, and return 'not found' from nginx. i dont want it to hit my
> >>> > fastcgi backend.
> >>> >
> >>> > [13/Aug/2010:19:39:26 -0700] "POST /%5C%22http:%5C/%5C/
> >>> >
> >>> > photos-b.ak.fbcdn.net
> %5C/photos-ak-snc1%5C/v43%5C/64%5C/68931197560%5C/app_2_68931197560_3211.gif%5C%22
> >>> > HTTP/1.1" 404 103 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X
> 10.5;
> >>> > en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8" 0.087 US
> >>> >
> >>> >
> >>> > how do i match requests with url starting like this:
> >>> >
> >>> > /%5C%22http:%5C/%5C/
> >>>
> >>> Try
> >>> location /\"http:\/\/ {
> >
> > I tried this, but did not help
> >
> > location /\"http:\/\/ {
> > access_log logs/junk.log wtop;
> > rewrite ^/(.*) www.XXX.com permanent;
> > }
> >
> >
> > it does not catch it. it is still hitting my fastcgi backend
> >
>
> put it in the topmost of your server block.
>
yes i have it in the top most position in server block. all other location
sections are below this and it still does not catch it. it is going to the
location that matches the last block
location / {
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

how to match these urls?

kevin August 13, 2010 10:50PM

Re: how to match these urls?

vesperto August 13, 2010 10:52PM

Re: how to match these urls?

kevin August 13, 2010 11:28PM

Re: how to match these urls?

Dennis J. August 14, 2010 09:08AM

Re: how to match these urls?

kevin August 14, 2010 02:56PM

Re: how to match these urls?

Igor Sysoev August 14, 2010 01:12PM

Re: how to match these urls?

kevin August 14, 2010 02:48PM

Re: how to match these urls?

kevin August 14, 2010 02:54PM

Re: how to match these urls?

edogawaconan August 14, 2010 03:04PM

Re: how to match these urls?

kevin August 14, 2010 03:22PM

Re: how to match these urls?

Igor Sysoev August 15, 2010 03:44AM

Re: how to match these urls?

kevin August 15, 2010 09:52AM

Re: how to match these urls?

Igor Sysoev August 15, 2010 01:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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