2007-05-23 15:56:58 -04:00
|
|
|
<?xml version="1.0"?>
|
2012-03-07 15:49:28 -05:00
|
|
|
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
|
2006-02-15 19:08:26 -05:00
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Configure the Jetty Server -->
|
2007-05-23 15:56:58 -04:00
|
|
|
<!-- -->
|
|
|
|
<!-- Documentation of this file format can be found at: -->
|
2012-03-07 15:49:28 -05:00
|
|
|
<!-- http://wiki.eclipse.org/Jetty/Reference/jetty.xml_syntax -->
|
2007-05-23 15:56:58 -04:00
|
|
|
<!-- -->
|
2006-02-15 19:08:26 -05:00
|
|
|
<!-- =============================================================== -->
|
2007-05-23 15:56:58 -04:00
|
|
|
|
|
|
|
|
2012-03-07 15:49:28 -05:00
|
|
|
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
2008-07-22 00:42:13 -04:00
|
|
|
|
2007-05-23 15:56:58 -04:00
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- Server Thread Pool -->
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<Set name="ThreadPool">
|
2012-03-07 15:49:28 -05:00
|
|
|
<!-- Default queued blocking threadpool -->
|
|
|
|
<New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
|
2007-05-23 15:56:58 -04:00
|
|
|
<Set name="minThreads">10</Set>
|
2008-08-11 17:46:03 -04:00
|
|
|
<Set name="maxThreads">10000</Set>
|
2012-03-07 15:49:28 -05:00
|
|
|
<Set name="detailedDump">false</Set>
|
2006-05-09 17:54:05 -04:00
|
|
|
</New>
|
2006-02-15 19:08:26 -05:00
|
|
|
</Set>
|
|
|
|
|
2007-05-23 15:56:58 -04:00
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- Set connectors -->
|
|
|
|
<!-- =========================================================== -->
|
2006-02-15 19:08:26 -05:00
|
|
|
|
2010-12-04 12:03:51 -05:00
|
|
|
<!--
|
2007-05-23 15:56:58 -04:00
|
|
|
<Call name="addConnector">
|
|
|
|
<Arg>
|
2012-03-07 15:49:28 -05:00
|
|
|
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
|
2010-12-04 12:03:51 -05:00
|
|
|
<Set name="host"><SystemProperty name="jetty.host" /></Set>
|
2007-05-23 15:56:58 -04:00
|
|
|
<Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
|
2012-03-20 11:17:14 -04:00
|
|
|
<Set name="maxIdleTime">50000</Set>
|
2007-05-23 15:56:58 -04:00
|
|
|
<Set name="Acceptors">2</Set>
|
2010-12-04 12:03:51 -05:00
|
|
|
<Set name="statsOn">false</Set>
|
2007-05-23 15:56:58 -04:00
|
|
|
<Set name="confidentialPort">8443</Set>
|
2010-12-04 12:03:51 -05:00
|
|
|
<Set name="lowResourcesConnections">5000</Set>
|
|
|
|
<Set name="lowResourcesMaxIdleTime">5000</Set>
|
2007-05-23 15:56:58 -04:00
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
2010-12-04 12:03:51 -05:00
|
|
|
-->
|
2007-05-23 15:56:58 -04:00
|
|
|
|
2010-12-04 12:03:51 -05:00
|
|
|
<!-- This connector is currently being used for Solr because it
|
|
|
|
showed better performance than nio.SelectChannelConnector
|
|
|
|
for typical Solr requests. -->
|
2007-05-23 15:56:58 -04:00
|
|
|
<Call name="addConnector">
|
|
|
|
<Arg>
|
2012-03-07 15:49:28 -05:00
|
|
|
<New class="org.eclipse.jetty.server.bio.SocketConnector">
|
2010-12-04 12:03:51 -05:00
|
|
|
<Set name="host"><SystemProperty name="jetty.host" /></Set>
|
2007-06-24 09:47:42 -04:00
|
|
|
<Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
|
2007-05-23 15:56:58 -04:00
|
|
|
<Set name="maxIdleTime">50000</Set>
|
|
|
|
<Set name="lowResourceMaxIdleTime">1500</Set>
|
2010-12-04 12:03:51 -05:00
|
|
|
<Set name="statsOn">false</Set>
|
2007-05-23 15:56:58 -04:00
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
|
2013-02-13 18:04:38 -05:00
|
|
|
<!-- if the connector below is uncommented, then jetty will also accept SSL
|
|
|
|
connections on port 8984, using a self signed certificate and can
|
|
|
|
optionally require the client to authenticate with a certificate.
|
|
|
|
(which can be the same as the server certificate_
|
|
|
|
|
|
|
|
# Run solr example with SSL on port 8984
|
|
|
|
java -jar start.jar
|
|
|
|
#
|
|
|
|
# Run post.jar so that it trusts the server cert...
|
|
|
|
java -Djavax.net.ssl.trustStore=../etc/solrtest.keystore -Durl=https://localhost:8984/solr/update -jar post.jar *.xml
|
|
|
|
|
|
|
|
# Run solr example with SSL requiring client certs on port 8984
|
|
|
|
java -Djetty.ssl.clientAuth=true -jar start.jar
|
|
|
|
#
|
|
|
|
# Run post.jar so that it trusts the server cert,
|
|
|
|
# and authenticates with a client cert
|
|
|
|
java -Djavax.net.ssl.keyStorePassword=secret -Djavax.net.ssl.keyStore=../etc/solrtest.keystore -Djavax.net.ssl.trustStore=../etc/solrtest.keystore -Durl=https://localhost:8984/solr/update -jar post.jar *.xml
|
|
|
|
|
|
|
|
-->
|
|
|
|
<!--
|
|
|
|
<Call name="addConnector">
|
|
|
|
<Arg>
|
|
|
|
<New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
|
|
|
|
<Arg>
|
|
|
|
<New class="org.eclipse.jetty.http.ssl.SslContextFactory">
|
|
|
|
<Set name="keyStore"><SystemProperty name="jetty.home" default="."/>/etc/solrtest.keystore</Set>
|
|
|
|
<Set name="keyStorePassword">secret</Set>
|
|
|
|
<Set name="needClientAuth"><SystemProperty name="jetty.ssl.clientAuth" default="false"/></Set>
|
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
<Set name="port"><SystemProperty name="jetty.ssl.port" default="8984"/></Set>
|
|
|
|
<Set name="maxIdleTime">30000</Set>
|
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
-->
|
|
|
|
|
2007-05-23 15:56:58 -04:00
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- Set handler Collection Structure -->
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<Set name="handler">
|
2012-03-07 15:49:28 -05:00
|
|
|
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
|
2007-05-23 15:56:58 -04:00
|
|
|
<Set name="handlers">
|
2012-03-07 15:49:28 -05:00
|
|
|
<Array type="org.eclipse.jetty.server.Handler">
|
2007-05-23 15:56:58 -04:00
|
|
|
<Item>
|
2012-03-07 15:49:28 -05:00
|
|
|
<New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
|
2007-05-23 15:56:58 -04:00
|
|
|
</Item>
|
|
|
|
<Item>
|
2012-03-07 15:49:28 -05:00
|
|
|
<New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
|
2007-05-23 15:56:58 -04:00
|
|
|
</Item>
|
|
|
|
<Item>
|
2012-03-07 15:49:28 -05:00
|
|
|
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
|
2007-05-23 15:56:58 -04:00
|
|
|
</Item>
|
|
|
|
</Array>
|
|
|
|
</Set>
|
|
|
|
</New>
|
|
|
|
</Set>
|
|
|
|
|
2012-07-12 07:42:01 -04:00
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- Configure Request Log -->
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!--
|
|
|
|
<Ref id="Handlers">
|
|
|
|
<Call name="addHandler">
|
|
|
|
<Arg>
|
|
|
|
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
|
|
|
|
<Set name="requestLog">
|
|
|
|
<New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
|
|
|
|
<Set name="filename">
|
2012-12-31 18:49:57 -05:00
|
|
|
logs/request.yyyy_mm_dd.log
|
2012-07-12 07:42:01 -04:00
|
|
|
</Set>
|
2012-12-31 15:49:17 -05:00
|
|
|
<Set name="filenameDateFormat">yyyy_MM_dd</Set>
|
2012-07-12 07:42:01 -04:00
|
|
|
<Set name="retainDays">90</Set>
|
|
|
|
<Set name="append">true</Set>
|
|
|
|
<Set name="extended">false</Set>
|
|
|
|
<Set name="logCookies">false</Set>
|
|
|
|
<Set name="LogTimeZone">UTC</Set>
|
|
|
|
</New>
|
|
|
|
</Set>
|
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
</Ref>
|
|
|
|
-->
|
2006-02-15 19:08:26 -05:00
|
|
|
|
2007-05-23 15:56:58 -04:00
|
|
|
<!-- =========================================================== -->
|
2012-03-07 15:49:28 -05:00
|
|
|
<!-- extra options -->
|
2007-05-23 15:56:58 -04:00
|
|
|
<!-- =========================================================== -->
|
2012-03-07 15:49:28 -05:00
|
|
|
<Set name="stopAtShutdown">true</Set>
|
2012-03-20 11:17:14 -04:00
|
|
|
<Set name="sendServerVersion">false</Set>
|
|
|
|
<Set name="sendDateHeader">false</Set>
|
2012-03-07 15:49:28 -05:00
|
|
|
<Set name="gracefulShutdown">1000</Set>
|
|
|
|
<Set name="dumpAfterStart">false</Set>
|
|
|
|
<Set name="dumpBeforeStop">false</Set>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Call name="addBean">
|
2007-05-23 15:56:58 -04:00
|
|
|
<Arg>
|
2012-03-07 15:49:28 -05:00
|
|
|
<New id="DeploymentManager" class="org.eclipse.jetty.deploy.DeploymentManager">
|
|
|
|
<Set name="contexts">
|
|
|
|
<Ref id="Contexts" />
|
|
|
|
</Set>
|
|
|
|
<Call name="setContextAttribute">
|
|
|
|
<Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
|
|
|
|
<Arg>.*/servlet-api-[^/]*\.jar$</Arg>
|
|
|
|
</Call>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Add a customize step to the deployment lifecycle -->
|
|
|
|
<!-- uncomment and replace DebugBinding with your extended AppLifeCycle.Binding class
|
|
|
|
<Call name="insertLifeCycleNode">
|
|
|
|
<Arg>deployed</Arg>
|
|
|
|
<Arg>starting</Arg>
|
|
|
|
<Arg>customise</Arg>
|
|
|
|
</Call>
|
|
|
|
<Call name="addLifeCycleBinding">
|
|
|
|
<Arg>
|
|
|
|
<New class="org.eclipse.jetty.deploy.bindings.DebugBinding">
|
|
|
|
<Arg>customise</Arg>
|
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
-->
|
|
|
|
|
2007-05-23 15:56:58 -04:00
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
2012-03-07 15:49:28 -05:00
|
|
|
|
|
|
|
<Ref id="DeploymentManager">
|
2012-07-11 17:45:43 -04:00
|
|
|
<Call name="addAppProvider">
|
|
|
|
<Arg>
|
|
|
|
<New class="org.eclipse.jetty.deploy.providers.ContextProvider">
|
|
|
|
<Set name="monitoredDirName"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
|
|
|
|
<Set name="scanInterval">0</Set>
|
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
2007-05-23 15:56:58 -04:00
|
|
|
</Ref>
|
2006-02-15 19:08:26 -05:00
|
|
|
|
2007-05-23 15:56:58 -04:00
|
|
|
</Configure>
|