Fixed demobase example xml
This commit is contained in:
parent
c0e6e66b49
commit
9a66395f0c
|
@ -19,31 +19,29 @@
|
||||||
<Set name="rewriteRequestURI"><Property name="jetty.rewrite.rewriteRequestURI" deprecated="rewrite.rewriteRequestURI" default="true"/></Set>
|
<Set name="rewriteRequestURI"><Property name="jetty.rewrite.rewriteRequestURI" deprecated="rewrite.rewriteRequestURI" default="true"/></Set>
|
||||||
<Set name="rewritePathInfo"><Property name="jetty.rewrite.rewritePathInfo" deprecated="rewrite.rewritePathInfo" default="false"/></Set>
|
<Set name="rewritePathInfo"><Property name="jetty.rewrite.rewritePathInfo" deprecated="rewrite.rewritePathInfo" default="false"/></Set>
|
||||||
<Set name="originalPathAttribute"><Property name="jetty.rewrite.originalPathAttribute" deprecated="rewrite.originalPathAttribute" default="requestedPath"/></Set>
|
<Set name="originalPathAttribute"><Property name="jetty.rewrite.originalPathAttribute" deprecated="rewrite.originalPathAttribute" default="requestedPath"/></Set>
|
||||||
|
|
||||||
|
<!-- Set DispatcherTypes -->
|
||||||
|
<Set name="dispatcherTypes">
|
||||||
|
<Array type="javax.servlet.DispatcherType">
|
||||||
|
<Item><Call class="javax.servlet.DispatcherType" name="valueOf"><Arg>REQUEST</Arg></Call></Item>
|
||||||
|
<Item><Call class="javax.servlet.DispatcherType" name="valueOf"><Arg>ASYNC</Arg></Call></Item>
|
||||||
|
</Array>
|
||||||
|
</Set>
|
||||||
|
|
||||||
|
<!-- example rule -->
|
||||||
|
<!--
|
||||||
|
<Call name="addRule">
|
||||||
|
<Arg>
|
||||||
|
<New class="org.eclipse.jetty.rewrite.handler.HeaderPatternRule">
|
||||||
|
<Set name="pattern">/favicon.ico</Set>
|
||||||
|
<Set name="name">Cache-Control</Set>
|
||||||
|
<Set name="value">Max-Age=3600,public</Set>
|
||||||
|
<Set name="terminating">true</Set>
|
||||||
|
</New>
|
||||||
|
</Arg>
|
||||||
|
</Call>
|
||||||
|
-->
|
||||||
|
|
||||||
</New>
|
</New>
|
||||||
|
|
||||||
<!-- Set DispatcherTypes -->
|
|
||||||
<Set name="dispatcherTypes">
|
|
||||||
<Array type="javax.servlet.DispatcherType">
|
|
||||||
<Item><Call class="javax.servlet.DispatcherType" name="valueOf"><Arg>REQUEST</Arg></Call></Item>
|
|
||||||
<Item><Call class="javax.servlet.DispatcherType" name="valueOf"><Arg>ASYNC</Arg></Call></Item>
|
|
||||||
</Array>
|
|
||||||
</Set>
|
|
||||||
</Set>
|
</Set>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- example rule -->
|
|
||||||
<!--
|
|
||||||
<Call name="addRule">
|
|
||||||
<Arg>
|
|
||||||
<New class="org.eclipse.jetty.rewrite.handler.HeaderPatternRule">
|
|
||||||
<Set name="pattern">/favicon.ico</Set>
|
|
||||||
<Set name="name">Cache-Control</Set>
|
|
||||||
<Set name="value">Max-Age=3600,public</Set>
|
|
||||||
<Set name="terminating">true</Set>
|
|
||||||
</New>
|
|
||||||
</Arg>
|
|
||||||
</Call>
|
|
||||||
-->
|
|
||||||
|
|
||||||
</Configure>
|
</Configure>
|
||||||
|
|
|
@ -11,7 +11,7 @@ directory, additional configuration may be specified and hot deployments
|
||||||
detected.
|
detected.
|
||||||
===================================================================== -->
|
===================================================================== -->
|
||||||
|
|
||||||
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
|
<Configure id="testWebapp" class="org.eclipse.jetty.webapp.WebAppContext">
|
||||||
|
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||||
<!-- Required minimal context configuration : -->
|
<!-- Required minimal context configuration : -->
|
||||||
|
@ -41,6 +41,13 @@ detected.
|
||||||
</New>
|
</New>
|
||||||
</Set>
|
</Set>
|
||||||
|
|
||||||
|
<!-- Set Caching Classloader that improves performance on resource searching webapps -->
|
||||||
|
<Set name="classLoader">
|
||||||
|
<New class="org.eclipse.jetty.webapp.CachingWebAppClassLoader">
|
||||||
|
<Arg><Ref refid="testWebapp"/></Arg>
|
||||||
|
</New>
|
||||||
|
</Set>
|
||||||
|
|
||||||
<!-- Enable symlinks
|
<!-- Enable symlinks
|
||||||
<Call name="addAliasCheck">
|
<Call name="addAliasCheck">
|
||||||
<Arg><New class="org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker"/></Arg>
|
<Arg><New class="org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker"/></Arg>
|
||||||
|
|
Loading…
Reference in New Issue