Plugin:org.tolven.config.tomcatserver

From DOC

Jump to: navigation, search

Overview

When any these properties are changed in the <tolven-config>/plugins.xml, it is necessary to run configPhase1 for them to take effect.

<!-- Tomcat Configuration (configPhase1 needs to be run for changes to take effect) -->
<plugin id="org.tolven.config.tomcatserver">
	<root />
	<property name="http.port" value="8080" />
	<property name="http.address" value="#{globalProperty['webBindAddress']}" />
	<property name="http.maxThreads" value="250" />
	<property name="http.maxHttpHeaderSize" value="8192" />
	<property name="http.emptySessionPath" value="true" />
	<property name="http.protocol" value="HTTP/1.1" />
	<property name="http.enableLookups" value="false" />
	<property name="http.redirectPort" value="8443" />
	<property name="http.acceptCount" value="100" />
	<property name="http.connectionTimeout" value="20000" />
	<property name="http.disableUploadTimeout" value="true" />
	<property name="https.port" value="8443" />
	<property name="https.address" value="#{globalProperty['webBindAddress']}" />
	<property name="https.maxThreads" value="150" />
	<property name="https.protocol" value="HTTP/1.1" />
	<property name="https.SSLEnabled" value="true" />
	<property name="https.scheme" value="https" />
	<property name="https.secure" value="true" />
	<property name="https.clientAuth" value="false" />
	<property name="https.sslProtocol" value="TLS" />
	<property name="https.keystoreFile" value="tolvendev-webserver.p12" />
	<property name="https.keystoreType" value="pkcs12" />
	<property name="https.keystorePass" value="tolven" />
	<property name="ajp.port" value="8009" />
	<property name="ajp.address" value="#{globalProperty['webBindAddress']}" />
	<property name="ajp.protocol" value="AJP/1.3" />
	<property name="ajp.emptySessionPath" value="true" />
	<property name="ajp.enableLookups" value="false" />
	<property name="ajp.redirectPort" value="8443" />
</plugin>

Note here the use of a plugin property called http.address. The plugin developer indicates that this plugin requires an http.address, so this file could provide it right here as a string literal, but this example shows that since the hostname is more global than just this plugin, the value should be search for in a global property called 'webBindAdress', which would be located in a <property> tag outside any particular plugin.

Note: The default configuration will only work for HTTP requests on localhost. To specify a specific host adapter to listen on, edit your <config-dir>/plugins.xml file:

<property name="webBindAddress" value="X.X.X.X" />

or to listen on all host adapters:

<property name="webBindAddress" value="0.0.0.0" />

Version Notes

Version 0.0.2

  1. Allow a second AJP Connector to be defined, as well as defining no properties to remove a particular Connector
Personal tools