I am trying to use the VirtualHostRuleContainer to group my rewrite rules. My rules outside of the Virtual Host Rule Container are working but none of the ones inside the container.
Here is an example of how I am trying to do this. <?xml version="1.0"?> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" " http://www.eclipse.org/jetty/configure_9_0.dtd"> <!-- =============================================================== --> <!-- Configure the demos --> <!-- =============================================================== --> <Configure id="Server" class="org.eclipse.jetty.server.Server"> <!-- ============================================================= --> <!-- Add rewrite rules --> <!-- ============================================================= --> <Ref refid="Rewrite"> <!-- Add rule to protect against IE ssl bug --> <Call name="addRule"> <Arg> <New class="org.eclipse.jetty.rewrite.handler.MsieSslRule"/> </Arg> </Call> <New id="virtualHosts" class="org.eclipse.jetty.rewrite.handler.VirtualHostRuleContainer"> <Set name="virtualHosts"> <Array type="java.lang.String"> <Item>www.example.com</Item> </Array> </Set> <!-- redirect from the SEO pages to coldfusion page --> <Call name="addRule"> <Arg> <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule"> <Set name="pattern">/test</Set> <Set name="replacement">/index.cfm?test.me</Set> </New> </Arg> </Call> </New> </Ref> </Configure> -- Andrew Penhorwood [email protected] www.coldbits.com
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
