Maximum URL length and the limit_zone module
Just Marc
marc at corky.net
Thu Aug 9 16:31:57 MSD 2007
Hi,
I have some long non-English file names that when url-encoded and
prepended with a path, exceed the 255 limit check in the limit_zone module:
I am using limit_zone like so:
limit_zone one $request_uri 10m;
http/modules/ngx_http_limit_zone_module.c:ngx_http_limit_zone_handler
if (len > 255) {
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
"the value of the \"%V\" variable "
"is more than 255 bytes: \"%V\"",
&ctx->var, vv);
return NGX_DECLINED;
}
Is there any special reason to limit this to 255 bytes? I think this
can be increased safely, no?
Is there a way to hash the request_uri and use that for limit_zone?
Marc
More information about the nginx
mailing list