Changeset 38877
- Timestamp:
- 2024-03-26T13:51:58+13:00 (8 weeks ago)
- Location:
- main/trunk/greenstone3/resources/tomcat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/resources/tomcat/server_tomcat8.xml.svn
r33992 r38877 15 15 See the License for the specific language governing permissions and 16 16 limitations under the License. 17 -->17 --> 18 18 <!-- GSDL: Notes 19 19 To turn a new default 'tomcatN.x.yy/conf/server.xml' into a server_tomcatN.xml.svn … … 43 43 <Listener className="org.apache.catalina.security.SecurityListener" /> 44 44 --> 45 <!-- APR library loader. Documentation at /docs/apr.html -->45 <!-- APR library loader. Documentation at /docs/apr.html --> 46 46 <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> 47 47 <!-- Prevent memory leaks due to use of particular java/javax APIs--> … … 85 85 Define a non-SSL/TLS HTTP/1.1 Connector on port @localhost.port.http@ 86 86 --> 87 <!-- GSDL: We comment out the 'standard' connector in favour of the tomcatThreadPool one blow --> 88 <!-- GSDL: URIEncoding of UTF-8 param also added --> 89 <!-- 87 <!-- GSDL: We comment out the 'standard' connector in favour of the tomcatThreadPool one below --> 88 <!-- GSDL: URIEncoding of UTF-8 param also added, and @http.address.restriction@ --> 89 <!-- 90 90 91 <Connector @http.address.restriction@ 91 port="@localhost.port.http@" 92 port="@localhost.port.http@" protocol="HTTP/1.1" 92 93 connectionTimeout="20000" 93 94 redirectPort="@https.redirect.port@" 94 URIEncoding="UTF-8" /> 95 maxParameterCount="1000" 96 URIEncoding="UTF-8" 97 /> 95 98 --> 96 99 <!-- A "Connector" using the shared thread pool--> 97 <!-- GSDL: Additional params added after redirectPort --> 100 <!-- GSDL: We use this Connector by default. Add @http.address.restriction@ 101 Additional params added after redirectPort --> 98 102 <Connector executor="tomcatThreadPool" @http.address.restriction@ 99 103 port="@localhost.port.http@" protocol="HTTP/1.1" 100 104 connectionTimeout="20000" 101 105 redirectPort="@https.redirect.port@" 102 compression="on" 106 maxParameterCount="1000" 107 compression="on" 103 108 compressionMinSize="524288" 104 109 compressableMimeType="text/html,text/xml,text/css,text/xsl,text/javascript" 105 110 noCompressionUserAgents="gozilla, traviata" 106 URIEncoding="UTF-8" /> 111 URIEncoding="UTF-8" 112 /> 113 107 114 <!-- Define an SSL/TLS HTTP/1.1 Connector on port @https.redirect.port@ 108 115 This connector uses the NIO implementation. The default 109 116 SSLImplementation will depend on the presence of the APR/native 110 library and the useOpenSSL attribute of the 111 AprLifecycleListener. 117 library and the useOpenSSL attribute of the AprLifecycleListener. 112 118 Either JSSE or OpenSSL style configuration may be used regardless of 113 119 the SSLImplementation selected. JSSE style configuration is used below. … … 115 121 <!-- GSDL: URIEncoding param added, but note the connector elem itself is commented out by default --> 116 122 <!-- 123 <!-- 117 124 <Connector port="@https.redirect.port@" protocol="org.apache.coyote.http11.Http11NioProtocol" 118 maxThreads="150" SSLEnabled="true" URIEncoding="UTF-8"> 125 maxThreads="150" SSLEnabled="true" 126 maxParameterCount="1000" 127 URIEncoding="UTF-8" 128 > 119 129 <SSLHostConfig> 120 130 <Certificate certificateKeystoreFile="conf/localhost-rsa.jks" … … 132 142 <!-- 133 143 <Connector port="@https.redirect.port@" protocol="org.apache.coyote.http11.Http11AprProtocol" 134 maxThreads="150" SSLEnabled="true" URIEncoding="UTF-8"> 144 maxThreads="150" SSLEnabled="true" 145 maxParameterCount="1000" 146 URIEncoding="UTF-8" 147 > 135 148 <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> 136 149 <SSLHostConfig> … … 150 163 clientAuth="false" sslProtocol="TLS" 151 164 keystoreType="@keystore.type@" 165 maxParameterCount="1000" 152 166 URIEncoding="UTF-8" /> 153 167 @https.comment.out.end@ 154 168 155 169 <!-- Define an AJP 1.3 Connector on port @tomcat.ajp.port@ --> 170 <!-- GSDL: URIEncoding param added, but note the connector elem itself is commented out by default --> 156 171 <!-- 157 172 <Connector protocol="AJP/1.3" 158 173 address="::1" 159 port="@tomcat.ajp.port@" 174 port="@tomcat.ajp.port@" 160 175 redirectPort="@https.redirect.port@" 161 URIEncoding="UTF-8" /> 176 maxParameterCount="1000" 177 URIEncoding="UTF-8" 178 /> 162 179 --> 163 180 -
main/trunk/greenstone3/resources/tomcat/web8.xml.svn
r34002 r38877 15 15 See the License for the specific language governing permissions and 16 16 limitations under the License. 17 -->17 --> 18 18 <!-- GSDL Notes 19 19 To turn a new default 'tomcatN.x.yy/conf/web.xml' into a webN.xml.svn … … 26 26 Then uncomment the corresponding servlet-mapping element for CGI 27 27 --> 28 28 29 29 30 30 <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" … … 86 86 <!-- --> 87 87 <!-- sendfileSize If the connector used supports sendfile, this --> 88 <!-- represents the minimal file size in K B for -->88 <!-- represents the minimal file size in KiB for --> 89 89 <!-- which sendfile will be used. Use a negative --> 90 90 <!-- value to always disable sendfile. [48] --> … … 120 120 <!-- allowPartialPut Should the server treat an HTTP PUT request --> 121 121 <!-- with a Range header as a partial PUT? Note --> 122 <!-- that RFC 7233 clarified that Range headers are --> 123 <!-- only valid for GET requests. [true] --> 122 <!-- that while RFC 7233 clarified that Range --> 123 <!-- headers only valid for GET requests, RFC 9110 --> 124 <!-- (which obsoletes RFC 7233) now allows partial --> 125 <!-- puts. [true] --> 124 126 125 127 <servlet> … … 367 369 <!-- for more details. The default varies by --> 368 370 <!-- platform. --> 369 <!-- Windows: [[ a-zA-Z0-9\Q-_.\\/:\E]+] -->371 <!-- Windows: [[\w\Q-.\\/:\E]+] --> 370 372 <!-- Others: [.*] --> 371 373 <!-- Note that internally the CGI Servlet treats --> … … 378 380 <!-- request will be rejected. The default matches --> 379 381 <!-- the allowed values defined by RFC3875. --> 380 <!-- [[ a-zA-Z0-9\Q%;/?:@&,$-_.!~*'()\E]+] -->382 <!-- [[\w\Q%;/?:@&,$-.!~*'()\E]+] --> 381 383 <!-- --> 382 384 <!-- enableCmdLineArguments --> … … 417 419 <!-- terminating the CGI process. [2000] --> 418 420 419 420 <!-- GSDL: Greenstone makes use of CGI through some Perl scripts, so we need this element in-play --> 421 <!-- GSDL: Greenstone makes use of CGI through some Perl scripts, so we need this element in-play --> 421 422 <servlet> 422 423 <servlet-name>cgi</servlet-name> … … 427 428 </init-param> 428 429 429 <init-param>430 <init-param> 430 431 <param-name>debug</param-name> 431 432 <param-value>0</param-value> … … 439 440 <param-value>@perlpath@perl</param-value> 440 441 </init-param> 441 442 442 443 <load-on-startup>5</load-on-startup> 443 444 </servlet> … … 565 566 <!-- definition towards the bottom of this file. --> 566 567 <!-- The contentType init param allows you to apply SSI processing to JSP --> 567 <!-- pages, javascript, or any other content you wish. This filter -->568 <!-- pages, JavaScript, or any other content you wish. This filter --> 568 569 <!-- supports the following initialization parameters (default values are --> 569 570 <!-- in square brackets): --> … … 1790 1791 </mime-mapping> 1791 1792 <mime-mapping> 1793 <extension>ggs</extension> 1794 <mime-type>application/vnd.geogebra.slides</mime-type> 1795 </mime-mapping> 1796 <mime-mapping> 1792 1797 <extension>ggt</extension> 1793 1798 <mime-type>application/vnd.geogebra.tool</mime-type> … … 2143 2148 <mime-mapping> 2144 2149 <extension>js</extension> 2145 <mime-type> application/javascript</mime-type>2150 <mime-type>text/javascript</mime-type> 2146 2151 </mime-mapping> 2147 2152 <mime-mapping> … … 2492 2497 <extension>mjp2</extension> 2493 2498 <mime-type>video/mj2</mime-type> 2499 </mime-mapping> 2500 <mime-mapping> 2501 <extension>mjs</extension> 2502 <mime-type>text/javascript</mime-type> 2494 2503 </mime-mapping> 2495 2504 <mime-mapping> … … 2932 2941 </mime-mapping> 2933 2942 <mime-mapping> 2943 <extension>opus</extension> 2944 <mime-type>audio/ogg</mime-type> 2945 </mime-mapping> 2946 <mime-mapping> 2934 2947 <extension>org</extension> 2935 2948 <mime-type>application/vnd.lotus-organizer</mime-type> … … 4275 4288 </mime-mapping> 4276 4289 <mime-mapping> 4290 <extension>wasm</extension> 4291 <mime-type>application/wasm</mime-type> 4292 </mime-mapping> 4293 <mime-mapping> 4277 4294 <extension>wav</extension> 4278 4295 <mime-type>audio/x-wav</mime-type> … … 4677 4694 <mime-mapping> 4678 4695 <extension>z</extension> 4679 <mime-type>application/x-compress</mime-type>4680 </mime-mapping>4681 <mime-mapping>4682 <extension>Z</extension>4683 4696 <mime-type>application/x-compress</mime-type> 4684 4697 </mime-mapping>
Note:
See TracChangeset
for help on using the changeset viewer.