Welcome! Log In Create A New Profile

Advanced

Re: Server hardening without "If" conditions

June 01, 2011 09:04AM
On Wed, Jun 1, 2011 at 7:47 PM, pk899 <nginx-forum@nginx.us> wrote:
> Hi. I notice that nginx with just the location rules and usual
> directives results in mind-blowing performance. Apache Bench test shows
> "115,000 requests per second" can be handled.
>
> However, when I add a simple rule:
>
>    if ($request_method !~ ^(GET|HEAD|POST)$ ) {
>      return 444;
>    }
>
> Which I think is important from a point of view of getting rid of so
> much junk that hits any modern server, the requests per second fall to
> "1,200" !!!
>

I'm interested in what way this is important. Especially since nginx
will just return error 400 on bad requests.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Server hardening without "If" conditions

pk899 June 01, 2011 08:47AM

Re: Server hardening without "If" conditions

ktm2 June 01, 2011 08:58AM

Re: Server hardening without "If" conditions

pk899 June 01, 2011 09:02AM

Re: Server hardening without "If" conditions

ktm2 June 01, 2011 09:38AM

Re: Server hardening without "If" conditions

edogawaconan June 01, 2011 09:04AM

Re: Server hardening without "If" conditions

Igor Sysoev June 01, 2011 09:14AM

Re: Server hardening without "If" conditions

Thomas Love June 01, 2011 09:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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