You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by wo...@apache.org on 2015/01/03 21:07:50 UTC
svn commit: r1649241 - in
/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF:
portlet.xml rproxy-mappings.yaml web.xml
Author: woonsan
Date: Sat Jan 3 20:07:50 2015
New Revision: 1649241
URL: http://svn.apache.org/r1649241
Log:
use scheme-less URIs for reverse proxy localhost examples
Modified:
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/rproxy-mappings.yaml
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/web.xml
Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml?rev=1649241&r1=1649240&r2=1649241&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml (original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml Sat Jan 3 20:07:50 2015
@@ -1555,11 +1555,11 @@
</preference>
<preference>
<name>SRC</name>
- <value>http://localhost:${serverPort}${contextPath}/examples/basicauth.jsp</value>
+ <value>//localhost:${serverPort}${contextPath}/examples/basicauth.jsp</value>
</preference>
<preference>
<name>PROXYREMOTEURL</name>
- <value>http://localhost:${serverPort}/</value>
+ <value>//localhost:${serverPort}/</value>
</preference>
<preference>
<name>PROXYLOCALPATH</name>
@@ -1652,11 +1652,11 @@
</preference>
<preference>
<name>SRC</name>
- <value>http://localhost:${serverPort}${contextPath}/examples/formauth.jsp</value>
+ <value>//localhost:${serverPort}${contextPath}/examples/formauth.jsp</value>
</preference>
<preference>
<name>PROXYREMOTEURL</name>
- <value>http://localhost:${serverPort}/</value>
+ <value>//localhost:${serverPort}/</value>
</preference>
<preference>
<name>PROXYLOCALPATH</name>
Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/rproxy-mappings.yaml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/rproxy-mappings.yaml?rev=1649241&r1=1649240&r2=1649241&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/rproxy-mappings.yaml (original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/rproxy-mappings.yaml Sat Jan 3 20:07:50 2015
@@ -15,8 +15,8 @@
--- !regex
localPattern: ^/localhost_(\d+)/(.*)$
-remoteReplace: http://localhost:$1/$2
-remotePattern: ^http://localhost:(\d+)/(.*)$
+remoteReplace: //localhost:$1/$2
+remotePattern: ^https?://localhost:(\d+)/(.*)$
localReplace: /localhost_$1/$2
contentRewriters:
text/html: !!org.apache.portals.applications.webcontent2.proxy.rewriter.DefaultReverseProxyTextLineContentRewriter []
Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/web.xml?rev=1649241&r1=1649240&r2=1649241&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/web.xml (original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/web.xml Sat Jan 3 20:07:50 2015
@@ -215,6 +215,10 @@
/WEB-INF/rproxy-mappings.yaml
</param-value>
</init-param>
+ <init-param>
+ <param-name>ssl-hostname-verifier</param-name>
+ <param-value>ALLOW_ALL_HOSTNAME_VERIFIER</param-value>
+ </init-param>
</servlet>
<!-- Define Velocity Servlet -->
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org