Skip to content

Instantly share code, notes, and snippets.

@aheritier
Created August 9, 2012 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aheritier/3303603 to your computer and use it in GitHub Desktop.
Save aheritier/3303603 to your computer and use it in GitHub Desktop.
TC7 patch pour reverse proxy apache SSL (et +)
--- server.xml 2011-06-08 17:11:36.000000000 +0200
+++ server.xml 2011-06-08 17:20:37.000000000 +0200
@@ -19,7 +19,7 @@
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
-->
-<Server port="8005" shutdown="SHUTDOWN">
+<Server port="@SHUTDOWN_PORT@" shutdown="SHUTDOWN">
<!-- Security listener. Documentation at /docs/config/listeners.html
<Listener className="org.apache.catalina.security.SecurityListener" />
-->
@@ -32,6 +32,10 @@
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
+ <!-- JMX fixed ports -->
+ <Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener"
+ rmiRegistryPortPlatform="@JMX_RMI_REGISTRY_PORT@" rmiServerPortPlatform="@JMX_RMI_SERVER_PORT@" />
+
<!-- Global JNDI resources
Documentation at /docs/jndi-resources-howto.html
-->
@@ -67,9 +67,19 @@
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
- <Connector port="8080" protocol="HTTP/1.1"
+ <Connector port="@HTTP_PORT@" protocol="HTTP/1.1"
+ acceptCount="100"
+ disableUploadTimeout="true"
+ enableLookups="false"
+ maxHttpHeaderSize="8192"
+ maxThreads="150"
+ minSpareThreads="25"
connectionTimeout="20000"
- redirectPort="8443" />
+ redirectPort="@HTTPS_PORT@"
+ URIEncoding="UTF-8"
+ scheme="https"
+ proxyName="@SWF_SERVICE_HOST@"
+ proxyPort="443" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
@@ -88,7 +103,15 @@
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
+ <Connector port="@AJP_PORT@" protocol="AJP/1.3"
+ enableLookups="false"
+ maxThreads="150"
+ connectionTimeout="20000"
+ redirectPort="@HTTPS_PORT@"
+ URIEncoding="UTF-8"
+ scheme="https"
+ proxyName="@SWF_SERVICE_HOST@"
+ proxyPort="443" />
<!-- An Engine represents the entry point (within Catalina) that processes
@@ -136,6 +159,9 @@
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t &quot;%r&quot; %s %b" resolveHosts="false"/>
+ <!-- Crawler Session Manager Valve -->
+ <Valve className="org.apache.catalina.valves.CrawlerSessionManagerValve"/>
+
</Host>
</Engine>
</Service>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment