Welcome! Log In Create A New Profile

Advanced

Re: how to match these urls?

August 15, 2010 01:34PM
On Sun, Aug 15, 2010 at 06:45:09AM -0700, kevin wrote:

> > Sorry, the slashes should be escaped, this is working configuration:
> >
> > location ^~ /\\"http:\\/\\/ {
> > return 404;
> > }
> >
> > "^~" is to disable regex locations.
> >
> thanks a lot! this catches it and returns 404!
>
> is it possible to customize the 404 message for this location?
> thanks!

location ^~ /\\"http:\\/\\/ {
return 404;
error_page 404 /bad.html;
}

location = /bad.html {
root /path/to/page;
}


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

_______________________________________________
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: 313
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