如何增加Apache 2 uri长度限制 [英] how to increase Apache 2 uri length limit
问题描述
我的 apache2 日志中出现此错误:
I am getting this error in my apache2 log:
[Tue Apr 06 09:00:56 2010] [error] [client A.B.C.D] 请求失败:URI 太长(超过 8190)
[Tue Apr 06 09:00:56 2010] [error] [client A.B.C.D] request failed: URI too long (longer than 8190)
我可以更改什么设置来增加此限制?
What setting can I change to increase this limit?
推荐答案
您必须在 Apache 源代码中设置 DEFAULT_LIMIT_REQUEST_LINE
常量,然后重新编译 Apache.此常量位于 httpd.h
头文件中.
You would have to set DEFAULT_LIMIT_REQUEST_LINE
constant inside of the Apache source code, and recompile Apache. This constant is in the httpd.h
header file.
完成此操作后,您可以使用 LimitRequestLine
指令降低请求限制.
After this is done you can decrease request limit using the LimitRequestLine
directive.
参见http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestline 了解更多信息.
这篇关于如何增加Apache 2 uri长度限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!