apache 的最大 url 长度是多少? [英] What is apache's maximum url length?

查看:41
本文介绍了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天全站免登陆