Skip to content

Apache Tomcat

Philip Helger edited this page Feb 23, 2021 · 3 revisions

Configuring Apache Tomcat

Apache Tomcat must be set up with the following java system property: org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH = true

It's also important that if you deploy as a WAR file, that "unpack WARs" is enabled (which it is by default).

This can be done by adding: -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH="true" as a JVM argument (Tomcat Properties -> Java -> Java Options) or put it into the catalina.sh in Linux:

CATALINA_OPTS="$CATALINA_OPTS -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true"

or catalina.bat on Windows:

set CATALINA_OPTS=%CATALINA_OPTS% -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true