Welcome! Log In Create A New Profile

Advanced

Re: Set URL request length in Nginx reverse proxy

agentzh
November 25, 2009 12:32AM
On Wed, Nov 25, 2009 at 1:02 PM, himesh <nginx-forum@nginx.us> wrote:
> I get the error when starting up Nginx with the condition
>
> if ($request_uri ~ .{70,}) {
> return 403;
>

You need quotes here. The following has been tested on my side:

if ($request_uri ~ '.{70,}') {
return 403;
}

Cheers,
-agentzh

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

Set URL request length in Nginx reverse proxy

himesh November 24, 2009 12:24AM

Re: Set URL request length in Nginx reverse proxy

himesh November 24, 2009 01:21AM

Re: Set URL request length in Nginx reverse proxy

Igor Sysoev November 24, 2009 03:24AM

Re: Set URL request length in Nginx reverse proxy

himesh November 24, 2009 06:05AM

Re: Set URL request length in Nginx reverse proxy

Igor Sysoev November 24, 2009 06:38AM

Re: Set URL request length in Nginx reverse proxy

himesh November 24, 2009 07:17AM

Re: Set URL request length in Nginx reverse proxy

Nick Pearson November 24, 2009 10:06AM

Re: Set URL request length in Nginx reverse proxy

himesh November 25, 2009 12:02AM

Re: Set URL request length in Nginx reverse proxy

agentzh November 25, 2009 12:32AM

Re: Set URL request length in Nginx reverse proxy

himesh November 25, 2009 01:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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