lib/rubyfox/server/data/lib/jetty/etc/jetty.xml in rubyfox-server-2.12.5.1 vs lib/rubyfox/server/data/lib/jetty/etc/jetty.xml in rubyfox-server-2.13.3.1

- old
+ new

@@ -133,9 +133,46 @@ </Item> </Array> </Set> </New> </Set> + + + <!-- =========================================================== --> + <!-- configure rewrite handler --> + <!-- =========================================================== --> + <Call name="insertHandler"> + <Arg> + <New class="org.eclipse.jetty.rewrite.handler.RewriteHandler"> + <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="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> + + <Get id="Rewrite" name="ruleContainer"/> + + <!-- see rewrite-compactpath.xml for example how to add a rule --> + <Call name="addRule"> + <Arg> + <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule"> + <Set name="pattern">/websocket/*</Set> + <Set name="replacement">/BlueBox/websocket/</Set> + </New> + </Arg> + </Call> + + </New> + </Arg> + </Call> + + <Ref refid="RequestLog"> <Set name="requestLog"> <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog"> <Arg><SystemProperty name="jetty.logs" default="logs/http/"/>/yyyy_mm_dd.request.log</Arg> <Set name="retainDays">90</Set>