有谁知道如何通过domain.xml增加Glassfish中的最大标头大小?我无权访问管理GUI,需要增加Kerberos身份验证的标头。
答案 0 :(得分:0)
network-config / protocols / protocol部分中的http标记有两个属性( header-buffer-length-bytes 和 send-buffer-size-bytes )对于此设置。两个参数都应该设置。在我的示例中,我使用65535作为此参数:
<network-config>
<protocols>
<protocol name="http-listener-1">
<http request-timeout-seconds="300" redirect-port="443"
default-virtual-server="server" max-connections="100"
header-buffer-length-bytes="65535"
send-buffer-size-bytes="65535">
<file-cache></file-cache>
</http>
<ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl"
cert-nickname=""></ssl>
</protocol>
<protocol security-enabled="true" name="http-listener-2">
<http default-virtual-server="server" max-connections="250"
header-buffer-length-bytes="65535"
send-buffer-size-bytes="65535">
<file-cache></file-cache>
</http>
<ssl key-store="keystore.jks"
classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl"
cert-nickname="mynickname"></ssl>
</protocol>
...
</protocols>
</network-config>