如何提高Apache 2的URI长度限制 [英] how to increase apache 2 uri length limit
问题描述
我得到这个错误在我的Apache2日志
i am getting this error in my apache2 log
[周二4月6 9点00分56秒2010] [错误] [客户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源代码code的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.
查看<一个href=\"http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestline\">http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestline获取更多信息。
这篇关于如何提高Apache 2的URI长度限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!