简体   繁体   English

How to increase maximum HTTP header size for Java Spring Boot app hosted in Azure App Service (deployed as.WAR)?

[英]How to increase maximum HTTP header size for Java Spring Boot app hosted in Azure App Service (deployed as .WAR)?

We have a Java Spring Boot application hosted in an Azure App Service (Windows), and we need to increase the value of maxHttpHeaderSize on the Tomcat 9 server to probably around 32KB. We have a Java Spring Boot application hosted in an Azure App Service (Windows), and we need to increase the value of maxHttpHeaderSize on the Tomcat 9 server to probably around 32KB. I can't work out how we can influence the server settings to do this.我无法弄清楚我们如何影响服务器设置来做到这一点。

How can I override the maxHttpHeaderSize value for the Tomcat server in the Azure App Service?如何覆盖 Azure 应用服务中 Tomcat 服务器的maxHttpHeaderSize值?

Here are the "Stack settings" from the "Configuration" page for the App Service:以下是应用服务“配置”页面中的“堆栈设置”:

  • Stack: Java堆栈:Java
  • Java version: Java 11 Java版本:Java 11
  • Java minor version: Java 11 (auto-update) Java 次要版本:Java 11(自动更新)
  • Java web server: Apache Tomcat 9.0 Java web 服务器:Apache Z8F72E28063C30C7468FB6AF4653F4.
  • Java web server version: Apache Tomcat 9.0 (auto-update) Java web 服务器版本:Apache Z8F72E28063C30C7468FB6AF406539(F自动更新)。

We currently deploy the app via a DevOps pipeline that uploads a .WAR .我们目前通过上传.WAR的 DevOps 管道部署应用程序。

The reason that we need to increase the maximum header size is that we integrate with Azure AD for authentication, and it's adding large headers (due to quite a large number of user groups we think) which are tipping requests over the current limit for some users.我们需要增加最大 header 大小的原因是我们与 Azure AD 集成以进行身份验证,并且它添加了大标头(由于我们认为相当大量的用户组),这使某些用户的请求超过了当前限制.

Any guidance is much appreciated.非常感谢任何指导。 Thank you!谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 http 请求如何在部署的 Spring 启动应用程序中工作? - How do http requests work in deployed Spring Boot app? Java web app not responding to HTTP requests when deployed to Azure App Service using Windows app service plan - Java web app not responding to HTTP requests when deployed to Azure App Service using Windows app service plan Tomcat 战争已部署,但 spring 引导应用程序未开始运行 - Tomcat war gets deployed but spring boot app does not start running Spring Boot应用程序打包为WAR部署在Jetty 9.2上 - Spring Boot app packaged as WAR deployed on Jetty 9.2 Spring 使用 Azure 应用服务启动应用端点 - Spring boot app endpoints with Azure App service 如何在Heroku中运行Spring Boot WAR应用程序? - How to run a Spring Boot WAR app in Heroku? 部署 Spring 后导航到 Azure App Service 的错误引导 Java App 到 Linux App Service - Errors navigating to Azure App Service after deploying Spring Boot Java App to Linux App Service Spring 引导容器在 Azure 应用服务中具有信任库 - Spring boot container With truststore in Azure App Service 在Azure App Service上部署Spring Boot jar - Deploy Spring Boot jar on Azure App Service Azure 应用服务 - Spring 启动 - Hikari 错误 - Azure App Service - Spring Boot - Hikari Errors
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM