Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Changing Azure Webapp (PaaS) Tomcat9 configuration files

$
0
0

I have to change the server.xml changing the URIEnconding from UTF-8 to ISO-8859-15.

<Connector port="${port.http}" protocol="HTTP/1.1" address="127.0.0.1"           connectionTimeout="20000"           maxHttpHeaderSize="16384"           redirectPort="8443"           compression="on"           URIEncoding="ISO-8859-15" />

In the old solution, we installed a tomcat inside the webapp with the change, but reading the documentation in https://docs.microsoft.com/es-es/azure/app-service/configure-language-java#configuring-tomcat

it says you can change the configuration files, copying them inside a folder with the name of the tomcat folder your webapp is using.

In my case, I'm using the Tomcat9.0(Auto-Update)

Stack Setttngs: Java container Tomcat > Java container version 9.0

Checking the env values,

AZURE_TOMCAT90_HOME=D:\Program Files (x86)\apache-tomcat-9.0.21

I created the path:D:\home\apache-tomcat-9.0.21 and put all the configuration files from the Tomcat inside this folder.

I tried copying the files inside this folders:

D:\home\apache-tomcat-9.0.21\conf D:\home\apache-tomcat-9.0.21

and restart the webapp but it didn't take the changes and is still applying the UTF-8 encoding.

Do I need to include any parameter inside the Application settings to tell Azure Webapp to take the folder conf instead of the Tomcat original folder?AzureWebapp ApplicationSettings

I'm deploying the webapp via Azure Devops. Do I need to do the changes before starting for first time the webapp?

Thanks,Juan Ramón Fernández


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>