You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by sa...@apache.org on 2016/10/20 07:53:51 UTC

[2/2] ode git commit: ODE-1028: Updated urlrewrite rule

ODE-1028: Updated urlrewrite rule


Project: http://git-wip-us.apache.org/repos/asf/ode/repo
Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/b162baeb
Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/b162baeb
Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/b162baeb

Branch: refs/heads/ode-1.3.x
Commit: b162baebe38b04e9914610f6b8c00832ef77a0e5
Parents: ece2e67
Author: Tammo van Lessen <va...@apache.org>
Authored: Thu Oct 20 13:22:07 2016 +0530
Committer: sathwik <sa...@apache.org>
Committed: Thu Oct 20 13:22:07 2016 +0530

----------------------------------------------------------------------
 axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ode/blob/b162baeb/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml
----------------------------------------------------------------------
diff --git a/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml b/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml
index f950be9..1562d93 100644
--- a/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml
+++ b/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml
@@ -27,15 +27,18 @@
     http://www.tuckey.org/urlrewrite/
 
 -->
-<urlrewrite>
+<urlrewrite default-match-type="wildcard">
 
     <rule>
         <note>
-            The rule means that requests to /ode will be redirected to 
+            The rule means that requests to /ode will be redirected to
             /ode/webjars/ode-console/${version} the url will be rewritten.
         </note>
-        <from>^/$</from>
-        <to type="redirect">webjars/ode-console/0.1.0-SNAPSHOT</to>
+        <condition type="request-uri" operator="notequal">/*/webjars/**</condition>
+        <condition type="request-uri" operator="notequal">/*/processes/**</condition>
+        <condition type="request-uri" operator="notequal">/*/services/**</condition>
+        <condition type="request-uri" operator="notequal">/*/deployment/**</condition>
+        <from>/**</from>
+        <to>/webjars/ode-console/0.1.0-SNAPSHOT/$1</to>
     </rule>
 </urlrewrite>
-