portals-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r1649247 - in /portals/site/applications/src/site/xdoc/webcontent2: reverse-proxy-module.xml war-module.xml
Date Sat, 03 Jan 2015 20:57:16 GMT
Author: woonsan
Date: Sat Jan  3 20:57:16 2015
New Revision: 1649247

URL: http://svn.apache.org/r1649247
Log:
updating info:
- scheme-less URI usages
- ssl-hostname-verifier init param

Modified:
    portals/site/applications/src/site/xdoc/webcontent2/reverse-proxy-module.xml
    portals/site/applications/src/site/xdoc/webcontent2/war-module.xml

Modified: portals/site/applications/src/site/xdoc/webcontent2/reverse-proxy-module.xml
URL: http://svn.apache.org/viewvc/portals/site/applications/src/site/xdoc/webcontent2/reverse-proxy-module.xml?rev=1649247&r1=1649246&r2=1649247&view=diff
==============================================================================
--- portals/site/applications/src/site/xdoc/webcontent2/reverse-proxy-module.xml (original)
+++ portals/site/applications/src/site/xdoc/webcontent2/reverse-proxy-module.xml Sat Jan 
3 20:57:16 2015
@@ -71,6 +71,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>
 
   <!-- Map /rproxyservlet/* path to the Reverse Proxy Servlet -->
@@ -113,6 +117,15 @@
                 from '${user.home}/rproxy-mappings.xml' if the user's home directory is '/home/user1'.
               </td>
             </tr>
+            <tr>
+              <td>ssl-hostname-verifier</td>
+              <td>BROWSER_COMPATIBLE_HOSTNAME_VERIFIER</td>
+              <td>ALLOW_ALL_HOSTNAME_VERIFIER</td>
+              <td>
+                The init parameter can be any of "ALLOW_ALL_HOSTNAME_VERIFIER", "BROWSER_COMPATIBLE_HOSTNAME_VERIFIER"
+                or "STRICT_HOSTNAME_VERIFIER", case-insensitively.
+              </td>
+            </tr>
           </table>
         </p>
         <p>
@@ -130,6 +143,12 @@ remote: http://portals.apache.org/bridge
 contentRewriters:
     text/html: !!org.apache.portals.applications.webcontent2.proxy.rewriter.DefaultReverseProxyTextLineContentRewriter
[]
 
+--- !simple
+local: /localhost/examples1/
+remote: //localhost:8080/webcontent2/examples1/
+contentRewriters:
+    text/html: !!org.apache.portals.applications.webcontent2.proxy.rewriter.DefaultReverseProxyTextLineContentRewriter
[]
+
 --- !regex
 localPattern: ^/apache/(\w+)/(.*)$
 remoteReplace: http://$1.apache.org/$2
@@ -138,6 +157,14 @@ localReplace: /apache/$1/$2
 contentRewriters:
     text/html: !!org.apache.portals.applications.webcontent2.proxy.rewriter.DefaultReverseProxyTextLineContentRewriter
[]
 
+--- !regex
+localPattern: ^/localhost/examples2/(.*)$
+remoteReplace: //localhost:8080/webcontent2/examples2/$1
+remotePattern: ^https?://localhost:8080/webcontent2/examples2/(.*)$
+localReplace: /localhost/examples2/$1
+contentRewriters:
+    text/html: !!org.apache.portals.applications.webcontent2.proxy.rewriter.DefaultReverseProxyTextLineContentRewriter
[]
+
 --- !simple
 local: /
 remote: http://apache.org/
@@ -165,6 +192,10 @@ contentRewriters:
         /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>
   </filter>
 
   <!-- Map /rproxyfilter/* path to the Reverse Proxy Filter -->
@@ -210,6 +241,15 @@ contentRewriters:
                 from '${user.home}/rproxy-mappings.xml' if the user's home directory is '/home/user1'.
               </td>
             </tr>
+            <tr>
+              <td>ssl-hostname-verifier</td>
+              <td>BROWSER_COMPATIBLE_HOSTNAME_VERIFIER</td>
+              <td>ALLOW_ALL_HOSTNAME_VERIFIER</td>
+              <td>
+                The init parameter can be any of "ALLOW_ALL_HOSTNAME_VERIFIER", "BROWSER_COMPATIBLE_HOSTNAME_VERIFIER"
+                or "STRICT_HOSTNAME_VERIFIER", case-insensitively.
+              </td>
+            </tr>
           </table>
         </p>
       </subsection>
@@ -281,6 +321,17 @@ contentRewriters:
           class instance with the default constructor (as specified by '[]').
           Please see <a href="https://code.google.com/p/snakeyaml/" target="_blank">SnakeYAML</a>
homepage for details.
         </p>
+        <p>
+          You can also set a scheme-less remote URL prefix like the following example.
+          In this case, the default URL scheme is inferred from the current servlet request
(e.g, <code>javax.servlet.ServletRequest#getScheme()</code>).
+          <source><![CDATA[
+--- !simple
+local: /localhost/examples1/
+remote: //localhost:8080/webcontent2/examples1/
+contentRewriters:
+    text/html: !!org.apache.portals.applications.webcontent2.proxy.rewriter.DefaultReverseProxyTextLineContentRewriter
[]
+          ]]></source>
+        </p>
       </subsection>
 
       <subsection name="Regular Expression based mapping">
@@ -334,6 +385,21 @@ contentRewriters:
           class instance with the default constructor (as specified by '[]').
           Please see <a href="https://code.google.com/p/snakeyaml/" target="_blank">SnakeYAML</a>
homepage for details.
         </p>
+        <p>
+          You can also set a scheme-less remote URL prefix like the following example.
+          In this case, the default URL scheme is inferred from the current servlet request
(e.g, <code>javax.servlet.ServletRequest#getScheme()</code>).
+          <source><![CDATA[
+--- !regex
+localPattern: ^/localhost/examples2/(.*)$
+remoteReplace: //localhost:8080/webcontent2/examples2/$1
+remotePattern: ^https?://localhost:8080/webcontent2/examples2/(.*)$
+localReplace: /localhost/examples2/$1
+contentRewriters:
+    text/html: !!org.apache.portals.applications.webcontent2.proxy.rewriter.DefaultReverseProxyTextLineContentRewriter
[]
+          ]]></source>
+          <em>Note: </em> The <code>remotePattern</code> can start
with a specific scheme ("http" or "https") pattern
+          because the <code>remotePattern</code> is evaluated always on the current
specific remote target URL or redirection location URL.
+        </p>
       </subsection>
 
       <subsection name="Extending the Default Reverse Proxy Service">

Modified: portals/site/applications/src/site/xdoc/webcontent2/war-module.xml
URL: http://svn.apache.org/viewvc/portals/site/applications/src/site/xdoc/webcontent2/war-module.xml?rev=1649247&r1=1649246&r2=1649247&view=diff
==============================================================================
--- portals/site/applications/src/site/xdoc/webcontent2/war-module.xml (original)
+++ portals/site/applications/src/site/xdoc/webcontent2/war-module.xml Sat Jan  3 20:57:16
2015
@@ -66,6 +66,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>
 
   <!-- Map /rproxy path to the Default Reverse Proxy Servlet -->



Mime
View raw message