Skip to content

Commit e81dfd1

Browse files
authored
Update configure-language-java.md
Incorporate all the changes suggested by reviewers
1 parent a78892a commit e81dfd1

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

articles/app-service/configure-language-java.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,14 +1102,14 @@ Please note that the latest versions of Tomcat will have these server.xml. (8.5.
11021102
11031103
### Connector
11041104
1105-
```
1105+
```xml
11061106
<Connector port="${port.http}" address="127.0.0.1" maxHttpHeaderSize="16384" compression="on" URIEncoding="UTF-8" connectionTimeout="${site.connectionTimeout}" maxThreads="${catalina.maxThreads}" maxConnections="${catalina.maxConnections}" protocol="HTTP/1.1" redirectPort="8443"/>
11071107
```
1108-
* maxHttpHeaderSize to 16384
1109-
* URIEncoding to UTF-8
1110-
* conectionTimeout to (WEBSITE_TOMCAT_CONNECTION_TIMEOUT, default 240000)
1111-
* maxThreads to (WEBSITE_CATALINA_MAXTHREADS, default 200)
1112-
* maxConnections to (WEBSITE_CATALINA_MAXCONNECTIONS, default 10000)
1108+
* `maxHttpHeaderSize` is set to `16384`
1109+
* `URIEncoding` is set to `UTF-8`
1110+
* `conectionTimeout` is set to `WEBSITE_TOMCAT_CONNECTION_TIMEOUT`, which defaults to `240000`
1111+
* `maxThreads` is set to `WEBSITE_CATALINA_MAXTHREADS`, which defaults to `200`
1112+
* `maxConnections` is set to `WEBSITE_CATALINA_MAXCONNECTIONS`, which defaults to `10000`
11131113
11141114
> [!NOTE]
11151115
> The connectionTimeout, maxThreads and maxConnections settings can be tuned with app settings
@@ -1129,28 +1129,28 @@ az webapp config appsettings set --resource-group myResourceGroup --name myApp -
11291129
11301130
### Host
11311131
1132-
```
1132+
```xml
11331133
<Host appBase="${site.appbase}" xmlBase="${site.xmlbase}" unpackWARs="${site.unpackwars}" workDir="${site.tempdir}" errorReportValveClass="com.microsoft.azure.appservice.AppServiceErrorReportValve" name="localhost" autoDeploy="true">
11341134
```
11351135
1136-
* appBase to (AZURE_SITE_APP_BASE, defaults to local WebappsLocalPath)
1137-
* xmlBase to (AZURE_SITE_HOME, /site/wwwroot)
1138-
* unpackWARs to (AZURE_UNPACK_WARS, default true)
1139-
* workDir to (JAVA_TMP_DIR, default TMP)
1136+
* `appBase` is set to `AZURE_SITE_APP_BASE`, which defaults to local `WebappsLocalPath`
1137+
* `xmlBase` is set to `AZURE_SITE_HOME`, which defaults to `/site/wwwroot`
1138+
* `unpackWARs` is set to `AZURE_UNPACK_WARS`, which defaults to `true`
1139+
* `workDir` is set to `JAVA_TMP_DIR`, which defaults `TMP`
11401140
* errorReportValveClass uses our custom error report valve
11411141
11421142
### Valve
11431143
1144-
```
1144+
```xml
11451145
<Valve prefix="site_access_log.${catalina.instance.name}" pattern="%h %l %u %t &quot;%r&quot; %s %b %D %{x-arr-log-id}i" directory="${site.logdir}/http/RawLogs" maxDays="${site.logRetentionDays}" className="org.apache.catalina.valves.AccessLogValve" suffix=".txt"/>
11461146
```
1147-
* directory to (AZURE_LOGGING_DIR, default home\logFiles)
1148-
* maxDays to (WEBSITE_HTTPLOGGING_RETENTION_DAYS, default 0 [forever] )
1147+
* `directory` is set to `AZURE_LOGGING_DIR`, which defaults to `home\logFiles`
1148+
* `maxDays` is to `WEBSITE_HTTPLOGGING_RETENTION_DAYS`, which defaults to `0` [forever]
11491149
11501150
On Linux, it has all of the same customization, plus:
11511151
11521152
* Adds some error and reporting pages to the valve:
1153-
```
1153+
```xml
11541154
<xsl:attribute name="appServiceErrorPage">
11551155
<xsl:value-of select="'${appService.valves.appServiceErrorPage}'"/>
11561156
</xsl:attribute>

0 commit comments

Comments
 (0)