Author: woonsan
Date: Fri Sep 5 04:01:58 2014
New Revision: 1622613
URL: http://svn.apache.org/r1622613
Log:
APA-66: default rproxy mapping configuration
Added:
portals/applications/webcontent/trunk/war/src/main/webapp/WEB-INF/rproxy-mappings.yaml
Modified:
portals/applications/webcontent/trunk/war/src/main/webapp/WEB-INF/web.xml
Added:
portals/applications/webcontent/trunk/war/src/main/webapp/WEB-INF/rproxy-mappings.yaml
URL:
http://svn.apache.org/viewvc/portals/applications/webcontent/trunk/war/src/main/webapp/WEB-INF/rproxy-mappings.yaml?rev=1622613&view=auto
==============================================================================
---
portals/applications/webcontent/trunk/war/src/main/webapp/WEB-INF/rproxy-mappings.yaml
(added)
+++
portals/applications/webcontent/trunk/war/src/main/webapp/WEB-INF/rproxy-mappings.yaml
Fri Sep 5 04:01:58 2014
@@ -0,0 +1,40 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+--- !simple
+local: /portals/applications/
+remote: http://portals.apache.org/applications/
+contentRewriters:
+ text/html:
!!org.apache.portals.applications.webcontent2.proxy.rewriter.DefaultReverseProxyTextLineContentRewriter
[]
+
+--- !simple
+local: /portals/bridges/
+remote: http://portals.apache.org/bridges/
+contentRewriters:
+ text/html:
!!org.apache.portals.applications.webcontent2.proxy.rewriter.DefaultReverseProxyTextLineContentRewriter
[]
+
+--- !regex
+localPattern: ^/apache/(\w+)/(.*)$
+remoteReplace: http://$1.apache.org/$2
+remotePattern: ^http://(\w+)\.apache\.org/(.*)$
+localReplace: /apache/$1/$2
+contentRewriters:
+ text/html:
!!org.apache.portals.applications.webcontent2.proxy.rewriter.DefaultReverseProxyTextLineContentRewriter
[]
+
+--- !simple
+local: /
+remote: http://apache.org/
+contentRewriters:
+ text/html:
!!org.apache.portals.applications.webcontent2.proxy.rewriter.DefaultReverseProxyTextLineContentRewriter
[]
Modified:
portals/applications/webcontent/trunk/war/src/main/webapp/WEB-INF/web.xml
URL:
http://svn.apache.org/viewvc/portals/applications/webcontent/trunk/war/src/main/webapp/WEB-INF/web.xml?rev=1622613&r1=1622612&r2=1622613&view=diff
==============================================================================
--- portals/applications/webcontent/trunk/war/src/main/webapp/WEB-INF/web.xml
(original)
+++ portals/applications/webcontent/trunk/war/src/main/webapp/WEB-INF/web.xml
Fri Sep 5 04:01:58 2014
@@ -54,22 +54,11 @@
<init-param>
<param-name>mappings</param-name>
<param-value>
---- !simple
-local: /localhost_8080/
-remote: http://localhost:8080/
-
-#--- !simple
-#local: /applications/
-#remote: http://portals.apache.org/applications/
-#
-#--- !simple
-#local: /bridges/
-#remote: http://portals.apache.org/bridges/
+ /WEB-INF/rproxy-mappings.yaml
</param-value>
</init-param>
- <load-on-startup>11</load-on-startup>
</servlet>
-
+
<!-- Map *.vm files to Velocity -->
<servlet-mapping>
<servlet-name>velocity</servlet-name>