Set URL request length in Nginx reverse proxy
igor at sysoev.ru
Tue Nov 24 11:17:02 MSK 2009
On Tue, Nov 24, 2009 at 12:24:49AM -0500, himesh wrote:
> Hi All,
> Is it possible to set the limit to the number of characters that can be present in the requested Url. which variable can i use to access the requested url .
You may limit buffer size for client request:
large_client_header_buffers 4 4k;
These are default values. If you want to limit URL to 2K, set:
large_client_header_buffers 4 2k;
Note, that this also limits length of any header line to 2K.
More information about the nginx