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 01:05:45 UTC
[tomcat] branch 9.0.x updated: Format doc example
This is an automated email from the ASF dual-hosted git repository.
isapir pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 409761f78d Format doc example
409761f78d is described below
commit 409761f78d6be2deebf1a180ad19096c13f6cc98
Author: Igal Sapir <is...@apache.org>
AuthorDate: Sat May 20 18:05:35 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>
- <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.0/8, ::1</param-value>
- </init-param>
- </filter>
- <filter-mapping>
- <filter-name>Remote CIDR Filter</filter-name>
- <url-pattern>/*</url-pattern>
- </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