svn commit: r1649241 - in /portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF: portlet.xml rproxy-mappings.yaml web.xml

[email protected]
Newsgroups gmane.comp.jakarta.jetspeed.devel
Message-ID <[email protected]>
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 -->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.