Set URL request length in Nginx reverse proxy

agentzh agentzh at gmail.com
Wed Nov 25 08:24:46 MSK 2009


On Wed, Nov 25, 2009 at 1:02 PM, himesh <nginx-forum at 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




More information about the nginx mailing list