Sha256: 16bbd959558251c6468ee23aaf6486ee55d16936e232a0d10e6991d454928b0d

Contents?: true

Size: 1.56 KB

Versions: 4

Compression:

Stored size: 1.56 KB

Contents

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">

<!-- =============================================================== -->
<!-- Mixin the RewriteHandler                                        -->
<!-- =============================================================== -->


<Configure id="Server" class="org.eclipse.jetty.server.Server">

    <!-- =========================================================== -->
    <!-- configure rewrite handler                                   -->
    <!-- =========================================================== -->
    <Get id="oldhandler" name="handler"/>

    <Set name="handler">
     <New id="Rewrite" class="org.eclipse.jetty.rewrite.handler.RewriteHandler">
      <Set name="handler"><Ref refid="oldhandler"/></Set>
      <Set name="rewriteRequestURI"><Property name="rewrite.rewriteRequestURI" default="true"/></Set>
      <Set name="rewritePathInfo"><Property name="rewrite.rewritePathInfo" default="false"/></Set>
      <Set name="originalPathAttribute"><Property name="rewrite.originalPathAttribute" default="requestedPath"/></Set>
     </New>
    </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>
    -->

    <!-- for example rules see jetty-demo.xml -->

</Configure>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubyfox-server-2.11.1.0 lib/rubyfox/server/data/lib/jetty/etc/jetty-rewrite.xml
rubyfox-server-2.9.2.0 lib/rubyfox/server/data/lib/jetty/etc/jetty-rewrite.xml
rubyfox-server-2.9.1.0 lib/rubyfox/server/data/lib/jetty/etc/jetty-rewrite.xml
rubyfox-server-2.9.0.0 lib/rubyfox/server/data/lib/jetty/etc/jetty-rewrite.xml