diff --git a/8/mysql-tomcat/tomcat/setenv.sh b/8/mysql-tomcat/tomcat/setenv.sh
index 9e4977b6d51331fb964052c6db2503bebd01a5ba..12f17810e304ee06757be1c2cb9e97e5aea674f3 100755
--- a/8/mysql-tomcat/tomcat/setenv.sh
+++ b/8/mysql-tomcat/tomcat/setenv.sh
@@ -1 +1 @@
-export CATALINA_OPTS="-Xmx1024m"
+export CATALINA_OPTS="-Xmx1024m -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true"
diff --git a/8/postgres-tomcat/tomcat/setenv.sh b/8/postgres-tomcat/tomcat/setenv.sh
index 9e4977b6d51331fb964052c6db2503bebd01a5ba..12f17810e304ee06757be1c2cb9e97e5aea674f3 100755
--- a/8/postgres-tomcat/tomcat/setenv.sh
+++ b/8/postgres-tomcat/tomcat/setenv.sh
@@ -1 +1 @@
-export CATALINA_OPTS="-Xmx1024m"
+export CATALINA_OPTS="-Xmx1024m -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true"
diff --git a/9/mysql-tomcat/tomcat/setenv.sh b/9/mysql-tomcat/tomcat/setenv.sh
index 9e4977b6d51331fb964052c6db2503bebd01a5ba..12f17810e304ee06757be1c2cb9e97e5aea674f3 100755
--- a/9/mysql-tomcat/tomcat/setenv.sh
+++ b/9/mysql-tomcat/tomcat/setenv.sh
@@ -1 +1 @@
-export CATALINA_OPTS="-Xmx1024m"
+export CATALINA_OPTS="-Xmx1024m -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true"
diff --git a/9/postgres-tomcat/tomcat/setenv.sh b/9/postgres-tomcat/tomcat/setenv.sh
index 9e4977b6d51331fb964052c6db2503bebd01a5ba..12f17810e304ee06757be1c2cb9e97e5aea674f3 100755
--- a/9/postgres-tomcat/tomcat/setenv.sh
+++ b/9/postgres-tomcat/tomcat/setenv.sh
@@ -1 +1 @@
-export CATALINA_OPTS="-Xmx1024m"
+export CATALINA_OPTS="-Xmx1024m -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true"
diff --git a/template/tomcat/setenv.sh b/template/tomcat/setenv.sh
index 9e4977b6d51331fb964052c6db2503bebd01a5ba..12f17810e304ee06757be1c2cb9e97e5aea674f3 100755
--- a/template/tomcat/setenv.sh
+++ b/template/tomcat/setenv.sh
@@ -1 +1 @@
-export CATALINA_OPTS="-Xmx1024m"
+export CATALINA_OPTS="-Xmx1024m -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true"