mirror of https://github.com/apache/lucene.git
111 lines
4.3 KiB
XML
111 lines
4.3 KiB
XML
<?xml version="1.0"?>
|
|
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
|
|
|
|
<!-- =============================================================== -->
|
|
<!-- Configure the Jetty Server -->
|
|
<!-- -->
|
|
<!-- Documentation of this file format can be found at: -->
|
|
<!-- http://wiki.eclipse.org/Jetty/Reference/jetty.xml_syntax -->
|
|
<!-- -->
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
|
|
|
<!-- =========================================================== -->
|
|
<!-- Set handler Collection Structure -->
|
|
<!-- =========================================================== -->
|
|
<Set name="handler">
|
|
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
|
|
<Set name="handlers">
|
|
<Array type="org.eclipse.jetty.server.Handler">
|
|
<Item>
|
|
<New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
|
|
</Item>
|
|
<Item>
|
|
<New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
|
|
</Item>
|
|
<Item>
|
|
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
|
|
</Item>
|
|
</Array>
|
|
</Set>
|
|
</New>
|
|
</Set>
|
|
|
|
<!-- =========================================================== -->
|
|
<!-- 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">
|
|
logs/request.yyyy_mm_dd.log
|
|
</Set>
|
|
<Set name="filenameDateFormat">yyyy_MM_dd</Set>
|
|
<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>
|
|
-->
|
|
|
|
<!-- =========================================================== -->
|
|
<!-- extra options -->
|
|
<!-- =========================================================== -->
|
|
<Set name="stopAtShutdown">true</Set>
|
|
<Set name="dumpAfterStart">false</Set>
|
|
<Set name="dumpBeforeStop">false</Set>
|
|
|
|
<Call name="addBean">
|
|
<Arg>
|
|
<New id="DeploymentManager" class="org.eclipse.jetty.deploy.DeploymentManager">
|
|
<Set name="contexts">
|
|
<Ref refid="Contexts" />
|
|
</Set>
|
|
<Call name="setContextAttribute">
|
|
<Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
|
|
<Arg>.*/servlet-api-[^/]*\.jar$</Arg>
|
|
</Call>
|
|
|
|
<Call name="addAppProvider">
|
|
<Arg>
|
|
<New class="org.eclipse.jetty.deploy.providers.WebAppProvider">
|
|
<Set name="monitoredDirName"><Property name="jetty.home" default="."/>/contexts</Set>
|
|
<Set name="scanInterval">0</Set>
|
|
</New>
|
|
</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>
|
|
-->
|
|
|
|
</New>
|
|
</Arg>
|
|
</Call>
|
|
|
|
</Configure>
|