]> git.pld-linux.org Git - packages/tomcat.git/blame - server.xml-URIEncoding-utf8.patch
- use relative symlinks for directories
[packages/tomcat.git] / server.xml-URIEncoding-utf8.patch
CommitLineData
1e19945f
ER
1Setup URIEncoding="UTF-8" to use unversal URI encoding.
2
3http://wiki.hudson-ci.org/display/HUDSON/Tomcat
4
5Some versions of Tomcat (such as 5.0.28) uses iso-8859-1 to decode URLs, which
6is in a clear violation of the relevant RFCs. To fix this problem, add the
7following URIEncoding attribute to the connector definition in
8$TOMCAT_HOME/conf/server.xml.
9
10--- apache-tomcat-6.0.28-src/conf/server.xml~ 2010-06-29 17:33:40.000000000 +0300
11+++ apache-tomcat-6.0.28-src/conf/server.xml 2010-07-20 09:12:35.045149469 +0300
12@@ -68,12 +68,14 @@
13 -->
14 <Connector port="8080" protocol="HTTP/1.1"
15 connectionTimeout="20000"
16+ URIEncoding="UTF-8"
17 redirectPort="8443" />
18 <!-- A "Connector" using the shared thread pool-->
19 <!--
20 <Connector executor="tomcatThreadPool"
21 port="8080" protocol="HTTP/1.1"
22 connectionTimeout="20000"
23+ URIEncoding="UTF-8"
24 redirectPort="8443" />
25 -->
26 <!-- Define a SSL HTTP/1.1 Connector on port 8443
27@@ -82,12 +84,12 @@
28 described in the APR documentation -->
29 <!--
30 <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
31- maxThreads="150" scheme="https" secure="true"
32+ maxThreads="150" scheme="https" secure="true" URIEncoding="UTF-8"
33 clientAuth="false" sslProtocol="TLS" />
34 -->
35
36 <!-- Define an AJP 1.3 Connector on port 8009 -->
37- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
38+ <Connector port="8009" protocol="AJP/1.3" URIEncoding="UTF-8" redirectPort="8443" />
39
40
41 <!-- An Engine represents the entry point (within Catalina) that processes
This page took 0.078001 seconds and 4 git commands to generate.