Skip to content

Commit

Permalink
PREAPPS-4182: Replaced zimbrax to modern.
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhav Dhuppe authored and silentsakky committed Feb 7, 2020
1 parent 60e9fe3 commit 8b67fb6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions conf/jetty/jetty.xml.production
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@
<Call name="addRule">
<Arg>
<New class="org.eclipse.jetty.rewrite.handler.HeaderPatternRule">
<Set name="pattern">/zimbrax/.*/bundle.*</Set>
<Set name="pattern">/modern/.*/bundle.*</Set>
<Set name="name">Cache-Control</Set>
<Set name="value">Max-Age=31536000,public</Set>
</New>
Expand All @@ -620,7 +620,7 @@
<Call name="addRule">
<Arg>
<New class="org.eclipse.jetty.rewrite.handler.HeaderPatternRule">
<Set name="pattern">/zimbrax/.*/.*(.chunk.*)</Set>
<Set name="pattern">/modern/.*/.*(.chunk.*)</Set>
<Set name="name">Cache-Control</Set>
<Set name="value">Max-Age=31536000,public</Set>
</New>
Expand All @@ -630,7 +630,7 @@
<Call name="addRule">
<Arg>
<New class="org.eclipse.jetty.rewrite.handler.HeaderPatternRule">
<Set name="pattern">/zimbrax/.*/fonts/*</Set>
<Set name="pattern">/modern/.*/fonts/*</Set>
<Set name="name">Cache-Control</Set>
<Set name="value">Max-Age=31536000,public</Set>
</New>
Expand All @@ -640,22 +640,22 @@
<Call name="addRule">
<Arg>
<New class="org.eclipse.jetty.rewrite.handler.HeaderPatternRule">
<Set name="pattern">/zimbrax/.*/assets/*</Set>
<Set name="pattern">/modern/.*/assets/*</Set>
<Set name="name">Cache-Control</Set>
<Set name="value">Max-Age=31536000,public</Set>
</New>
</Arg>
</Call>

<!--
Rewrites the routes to index.html for all the routes inside zimbrax folder
Rewrites the routes to index.html for all the routes inside modern folder
Does not rewrite for the ones who have lesser than 6 characters after the . character in the end (allows files such as .css, .js, .png, .woff2 etc)
-->
<Call name="addRule">
<Arg>
<New class="org.eclipse.jetty.rewrite.handler.RewriteRegexRule">
<Set name="regex">\/zimbrax\/?((.*)[^.]{6})?$</Set>
<Set name="replacement">%%zimbraMailURL%%/zimbrax/index.html</Set>
<Set name="regex">\/modern\/?((.*)[^.]{6})?$</Set>
<Set name="replacement">%%zimbraMailURL%%/modern/index.html</Set>
<Set name="terminating">true</Set>
</New>
</Arg>
Expand Down

0 comments on commit 8b67fb6

Please sign in to comment.