PCF云 - 想要更新tomcat max标头大小参数
我们遇到了
“请求标头太大”
错误在我们的PCF云环境中,我们正在使用PCF容器中的tomcat。我们已经在此错误上浏览了各种线程,并了解我们需要增加Tomcat的最大标头尺寸配置。但是,如果我们的tomcat在PCF环境中,我们没有明确的说明有关如何更新此设置?它是一个Spring Boot应用程序,但我们正在使用PCF容器中的外部TOMCAT部署战争文件。我们尝试在application.properties
文件中设置标头大小(server.max-http-http-header-size = 65536
),但是此修复程序也无法正常工作。
We have ran into
"Request Header is too large"
error in our PCF Cloud environment where we are using Tomcat from PCF Container. We have gone through various threads on this error and understand that we need to increase the max allowed header size configuration for the tomcat. However, we do not have a clear instructions on how we can update this setting if our Tomcat is in PCF Environment ? Its a Spring boot application but we are deploying WAR file by using external tomcat from PCF container. We tried setting the header size (server.max-http-header-size=65536
) in the application.properties
file but this fix is also not working.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要修改最大HTTP标头大小,请编辑您的应用程序配置文件:
application.properties格式
server.max-http-header-size = 20000
application.yml格式
服务器:
max-http-header-size:20000
To modify the max HTTP header size, edit your app configuration file:
application.properties format
server.max-http-header-size=20000
application.yml format
server:
max-http-header-size: 20000