You are viewing a plain text version of this content. The canonical link for it is here.
Posted to portalapps-dev@portals.apache.org by wo...@apache.org on 2009/10/07 11:48:08 UTC
svn commit: r822636 -
/portals/applications/webcontent/trunk/webcontent-war/src/main/webapp/WEB-INF/conf/reverseproxy.properties
Author: woonsan
Date: Wed Oct 7 09:48:07 2009
New Revision: 822636
URL: http://svn.apache.org/viewvc?rev=822636&view=rev
Log:
APA-17: Makes the configuration easy by separating route keys and pass mapping keys. It also allows "include" other properties files.
Modified:
portals/applications/webcontent/trunk/webcontent-war/src/main/webapp/WEB-INF/conf/reverseproxy.properties
Modified: portals/applications/webcontent/trunk/webcontent-war/src/main/webapp/WEB-INF/conf/reverseproxy.properties
URL: http://svn.apache.org/viewvc/portals/applications/webcontent/trunk/webcontent-war/src/main/webapp/WEB-INF/conf/reverseproxy.properties?rev=822636&r1=822635&r2=822636&view=diff
==============================================================================
--- portals/applications/webcontent/trunk/webcontent-war/src/main/webapp/WEB-INF/conf/reverseproxy.properties (original)
+++ portals/applications/webcontent/trunk/webcontent-war/src/main/webapp/WEB-INF/conf/reverseproxy.properties Wed Oct 7 09:48:07 2009
@@ -43,15 +43,16 @@
# HTTP Connection parameters per route.
# ... If you don't specify here for a route, then the default values are applied.
# ... Put the route item names here.
-proxy.http.route = apache, somewhere
proxy.http.route.param.defaultMaxPerRoute = 20
-# ... Sets detail attirbutes for each route item.
-
+# ... Sets detail attirbutes for apache route
+proxy.http.route = apache
proxy.http.route.apache.target.hostname = www.apache.org
proxy.http.route.apache.maxConnections = 40
# ... 'somewhere' is just an example to show the full configurable items...
+# ... Sets detail attirbutes for 'somewhere' route
+proxy.http.route = somewhere
proxy.http.route.somewhere.target.hostname = somewhere.localhost.com
proxy.http.route.somewhere.target.port = 8080
proxy.http.route.somewhere.maxConnections = 5
@@ -74,8 +75,8 @@
# ... Set max matching path part count
proxy.reverse.pass.maxMatchingPathPartCount = 2
-# ... Sets detail attributes for each path item.
-
+# ... Sets detail attributes for apache path mapping
+proxy.reverse.pass = apache
proxy.reverse.pass.apache.local = /apache/
proxy.reverse.pass.apache.remote = http://apache.org/
proxy.reverse.pass.apache.rewriter.basic = org.apache.portals.applications.webcontent.rewriter.WebContentRewriter
@@ -84,6 +85,8 @@
proxy.reverse.pass.apache.rewriter.parserAdaptor.html.mimeType = text/html
proxy.reverse.pass.apache.rewriter.parserAdaptor.html.property.lookUpAllMappings = true
+# ... Sets detail attributes for glob-based apache path mapping
+proxy.reverse.pass = all_apache
proxy.reverse.pass.all_apache.local = /*_apache/
proxy.reverse.pass.all_apache.remote = http://$1.apache.org/
proxy.reverse.pass.all_apache.rewriter.basic = org.apache.portals.applications.webcontent.rewriter.WebContentRewriter
@@ -92,6 +95,8 @@
proxy.reverse.pass.all_apache.rewriter.parserAdaptor.html.mimeType = text/html
proxy.reverse.pass.all_apache.rewriter.parserAdaptor.html.property.lookUpAllMappings = true
+# ... Sets detail attributes for secure apache path mapping
+proxy.reverse.pass = secure_apache
proxy.reverse.pass.secure_apache.local = /secure/apache/
proxy.reverse.pass.secure_apache.remote = https://apache.org/
proxy.reverse.pass.secure_apache.rewriter.basic = org.apache.portals.applications.webcontent.rewriter.WebContentRewriter
@@ -100,6 +105,8 @@
proxy.reverse.pass.secure_apache.rewriter.parserAdaptor.html.mimeType = text/html
proxy.reverse.pass.secure_apache.rewriter.parserAdaptor.html.property.lookUpAllMappings = true
+# ... Sets detail attributes for glob-based secure apache path mapping
+proxy.reverse.pass = all_secure_apache
proxy.reverse.pass.all_secure_apache.local = /secure/*_apache/
proxy.reverse.pass.all_secure_apache.remote = https://$1.apache.org/
proxy.reverse.pass.all_secure_apache.rewriter.basic = org.apache.portals.applications.webcontent.rewriter.WebContentRewriter
@@ -108,10 +115,14 @@
proxy.reverse.pass.all_secure_apache.rewriter.parserAdaptor.html.mimeType = text/html
proxy.reverse.pass.all_secure_apache.rewriter.parserAdaptor.html.property.lookUpAllMappings = true
-proxy.reverse.pass.localhost.local = /localhost/
-proxy.reverse.pass.localhost.remote = http://localhost:8080/
+# ... Sets detail attributes for localhost path mapping
+proxy.reverse.pass = localhost
+proxy.reverse.pass.localhost.local = /localhost_*/
+proxy.reverse.pass.localhost.remote = http://localhost:$1/
+# ... Sets detail attributes for apache path mapping
# ... 'somewhere' is just an example to show the full configurable items...
+proxy.reverse.pass = somewhere
proxy.reverse.pass.somewhere.local = /somewhere/
proxy.reverse.pass.somewhere.remote = http://somewhere.localhost.com/
# ... rewriter configuration for this pass mapping on html and xml types.