]>
Commit | Line | Data |
---|---|---|
1e19945f ER |
1 | Setup URIEncoding="UTF-8" to use unversal URI encoding. |
2 | ||
3 | http://wiki.hudson-ci.org/display/HUDSON/Tomcat | |
4 | ||
5 | Some versions of Tomcat (such as 5.0.28) uses iso-8859-1 to decode URLs, which | |
6 | is in a clear violation of the relevant RFCs. To fix this problem, add the | |
7 | following URIEncoding attribute to the connector definition in | |
8 | $TOMCAT_HOME/conf/server.xml. | |
9 | ||
bc0d3b1f JR |
10 | --- a/conf/server.xml.orig 2010-06-13 16:55:18.000000000 +0200 |
11 | +++ b/conf/server.xml 2010-07-20 13:51:33.000000000 +0200 | |
12 | @@ -66,12 +66,14 @@ | |
1e19945f ER |
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 | |
bc0d3b1f | 27 | @@ -80,12 +82,12 @@ |
1e19945f ER |
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 |