You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by is...@apache.org on 2023/05/21 00:49:38 UTC

[tomcat] branch main updated: Format doc example

This is an automated email from the ASF dual-hosted git repository.

isapir pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 8ab5174afe Format doc example
8ab5174afe is described below

commit 8ab5174afe10e28f5f7fd85887a6f21881bd8e85
Author: Igal Sapir <is...@apache.org>
AuthorDate: Sat May 20 17:49:21 2023 -0700

    Format doc example
---
 webapps/docs/config/filter.xml | 29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)

diff --git a/webapps/docs/config/filter.xml b/webapps/docs/config/filter.xml
index 1c25e15adb..617167d3e4 100644
--- a/webapps/docs/config/filter.xml
+++ b/webapps/docs/config/filter.xml
@@ -1325,21 +1325,20 @@ FINE: Request "/docs/config/manager.html" with response status "200"
   </subsection>
 
   <subsection name="Example">
-    <p>To allow access only for the clients connecting from localhost:</p>
-    <pre>
-      &lt;filter>
-      &lt;filter-name>Remote CIDR Filter&lt;/filter-name>
-      &lt;filter-class>org.apache.catalina.filters.RemoteCIDRFilter&lt;/filter-class>
-      &lt;init-param>
-      &lt;param-name>allow&lt;/param-name>
-      &lt;param-value>127.0.0.0/8, ::1&lt;/param-value>
-      &lt;/init-param>
-      &lt;/filter>
-      &lt;filter-mapping>
-      &lt;filter-name>Remote CIDR Filter&lt;/filter-name>
-      &lt;url-pattern>/*&lt;/url-pattern>
-      &lt;/filter-mapping>
-    </pre>
+    <p>To allow access only for the clients connecting from localhost and from local network 192.68.0.*:</p>
+    <source><![CDATA[      <filter>
+        <filter-name>Remote CIDR Filter</filter-name>
+        <filter-class>org.apache.catalina.filters.RemoteCIDRFilter</filter-class>
+        <init-param>
+          <param-name>allow</param-name>
+          <param-value>127.0.0.1, ::1, 192.68.0.0/24</param-value>
+        </init-param>
+      </filter>
+
+      <filter-mapping>
+        <filter-name>Remote CIDR Filter</filter-name>
+        <url-pattern>/*</url-pattern>
+      </filter-mapping>]]></source>
   </subsection>
 
 </section>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org