Changes for page Tomcat Installation

Last modified by Thomas Mortagne on 2023/12/01

<
From version < 49.1 >
edited by Floflobel
on 2019/01/28
To version < 50.1 >
edited by Vincent Massol
on 2019/01/28
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Floflobel
1 +XWiki.VincentMassol
Content
... ... @@ -293,22 +293,22 @@
293 293  
294 294  Tomcat completely freaks out when there's a ##%2F## or ##%5C## in URLs and it's not something that can be changed in XWiki. See [[this note>>http://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.10]] for more information.
295 295  
296 -You can configure Tomcat to allow "/", by setting the following system property:
296 +You can configure Tomcat to allow "/", by setting the ##org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=## system property to ##true##, as in:
297 297  
298 298  {{code}}
299 -org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
299 +-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
300 300  {{/code}}
301 301  
302 -And the following system property to allow "\":
302 +And by setting the ##org.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH## system property to ##true## to allow "\", as in:
303 303  
304 304  {{code}}
305 -org.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true
305 +-Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true
306 306  {{/code}}
307 307  
308 -To have both properties permanently enabled on your tomcat instance add the below lines to your CATALINA_OPTS environment variable. How to achieve this depends on your Operatingsystem, Tomcat distribution and single/multi-instance setup.
308 +To have both properties permanently enabled on your Tomcat instance, add the lines below to your ##CATALINA_OPTS## environment variable. How to achieve this depends on your operating system, Tomcat distribution and single/multi-instance setup.
309 309  
310 310  {{code}}
311 --Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
311 +-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
312 312  -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true
313 313  {{/code}}
314 314  

Get Connected