什么是Apache的最大URL长度? [英] What is apache's maximum url length?

查看:782
本文介绍了什么是Apache的最大URL长度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是Apache的一个URL的最大长度?它在哪里记录,并且是可配置的?

What is the maximum length of a URL in apache? Where is it documented, and is it configurable?

我实现一个OpenID身份提供商,并想知道我要对付的限制。我知道在Internet Explorer中的2048字节的路径限制。可以使用专门的用户代理检测处理。其他浏览器有更高的URL限制。

I'm implementing an openid identity provider, and would like to know the limitations I'm up against. I know about the 2048 byte path limit on Internet Explorer. That can be handled specially using user agent detection. Other browsers have much higher URL limits.

所以编码的应用程序时正是我感兴趣的是Apache服务器的限制。

So what I'm interested in is apache server limits when coding an application.

推荐答案

请求线是8190字节(请参见 LimitRequestLine 指令)。如果我们减去了请求方法(即 GET )的三个字节,八个字节的版本信息(即 HTTP / 1.0 / HTTP / 1.1 )和分离两个字节的空间,我们最终有8177个字节的URI路径再加上查询。

The default limit for the length of the request line is 8190 bytes (see LimitRequestLine directive). And if we subtract three bytes for the request method (i.e. GET), eight bytes for the version information (i.e. HTTP/1.0/HTTP/1.1) and two bytes for the separating space, we end up with 8177 bytes for the URI path plus query.

这篇关于什么是Apache的最大URL长度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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