[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jetty-users] Jetty 8 - tracing rewrite rules
|
I have Jetty 8 installed running under Ubuntu 14.04, installed from
the apt repository.
I have 3 virtual hosts defined in my set up (using contexts) as well
as a collection of rewrite rules.
>From a visual inspection, it appears that the rewrite rules are set up
correctly but simple tests are failing in a way that suggests that
theses rules are not being applied.
What mechanism is there that I could view the activity of the rewrite
handler and see the request URI before and after the transformation?
The configuration for those rewrite rules looks something like this
fragment below.
<!-- rules that apply only to the api subdomain -->
<Call name="addRule">
<Arg>
<New id="api-virtualHost"
class="org.eclipse.jetty.rewrite.handler.VirtualHostRuleContainer">
<Set name="virtualHosts">
<Array type="java.lang.String">
<Item>api.viafoura.com</Item>
</Array>
</Set>
<Call name="addRule">
<Arg>
<New
class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
<Set name="pattern">^/app/V([0-9a-zA-Z]{7,26})/(.*)$</Set>
<Set name="replacement">/$2</Set>
<Set name="terminating">true</Set>
</New>
</Arg>
</Call>
...
--
- michael dykman
- mdykman@xxxxxxxxx
May the Source be with you.