如何提高Apache 2的URI长度限制 [英] how to increase apache 2 uri length limit

查看:201
本文介绍了如何提高Apache 2的URI长度限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到这个错误在我的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆