From: kkolinko java.util.regex Regular
+ Expression syntax. Requests that come from locations that are
not accepted will be rejected with an HTTP "Forbidden" error.
Example filter declarations:
java.util.regex Regular
+ Expression syntax. Requests that come from locations that are
not accepted will be rejected with an HTTP "Forbidden" error.
Example filter declarations:
@@ -235,9 +234,9 @@
<Engine name="Standalone" ...>
...
<Valve className="org.apache.catalina.valves.RemoteHostValve"
- allow="*.mycompany.com,www.yourcompany.com"/>
+ allow=".*\.mycompany\.com|www\.yourcompany\.com"/>
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
- deny="192.168.1.*"/>
+ deny="192\.168\.1\.\d+"/>
...
</Engine>
diff --git a/webapps/docs/config/filter.xml b/webapps/docs/config/filter.xml
index a0373bb7d..e54c00569 100644
--- a/webapps/docs/config/filter.xml
+++ b/webapps/docs/config/filter.xml
@@ -549,7 +549,7 @@ FINE: Request "/docs/config/manager.html" with response status "200" content-typ
A regular expression (using java.util.Regex) that the
+
A regular expression (using java.util.regex) that the
remote client's IP address is compared to. If this attribute
is specified, the remote address MUST match for this request to be
accepted. If this attribute is not specified, all requests will be
@@ -558,7 +558,7 @@ FINE: Request "/docs/config/manager.html" with response status "200" content-typ
A regular expression (using java.util.Regex) that the
+
A regular expression (using A regular expression (using A regular expression (using A regular expression (using A regular expression (using A regular expression (using A regular expression (using A regular expression (using A regular expression (using A regular expression (using A regular expression (using A regular expression (using A regular expression (using java.util.regex) that the
remote client's IP address is compared to. If this attribute
is specified, the remote address MUST NOT match for this request to be
accepted. If this attribute is not specified, request acceptance is
@@ -604,7 +604,7 @@ FINE: Request "/docs/config/manager.html" with response status "200" content-typ
java.util.Regex) that the
+ java.util.regex) that the
remote client's hostname is compared to. If this attribute
is specified, the remote hostname MUST match for this request to be
accepted. If this attribute is not specified, all requests will be
@@ -613,7 +613,7 @@ FINE: Request "/docs/config/manager.html" with response status "200" content-typ
java.util.Regex) that the
+ java.util.regex) that the
remote client's hostname is compared to. If this attribute
is specified, the remote hostname MUST NOT match for this request to be
accepted. If this attribute is not specified, request acceptance is
diff --git a/webapps/docs/config/host.xml b/webapps/docs/config/host.xml
index 36069fb41..fc54c735e 100644
--- a/webapps/docs/config/host.xml
+++ b/webapps/docs/config/host.xml
@@ -519,10 +519,9 @@
incoming request directed to the surrounding
Engine, Host, or
Context element. The remote address or name
- will be checked against a configured list of "accept" and/or "deny"
- filters, which are defined using the Regular Expression syntax supported
- by the Jakarta Regexp
- regular expression library. Requests that come from locations that are
+ will be checked against configured "accept" and/or "deny"
+ filters, which are defined using java.util.regex Regular
+ Expression syntax. Requests that come from locations that are
not accepted will be rejected with an HTTP "Forbidden" error.
Example filter declarations:java.util.Regex) that the
+ java.util.regex) that the
remote client's IP address is compared to. If this attribute
is specified, the remote address MUST match for this request to be
accepted. If this attribute is not specified, all requests will be
@@ -267,7 +267,7 @@
java.util.Regex) that the
+ java.util.regex) that the
remote client's IP address is compared to. If this attribute
is specified, the remote address MUST NOT match for this request to be
accepted. If this attribute is not specified, request acceptance is
@@ -314,7 +314,7 @@
java.util.Regex) that the
+ java.util.regex) that the
remote client's hostname is compared to. If this attribute
is specified, the remote hostname MUST match for this request to be
accepted. If this attribute is not specified, all requests will be
@@ -323,7 +323,7 @@
java.util.Regex) that the
+ java.util.regex) that the
remote client's hostname is compared to. If this attribute
is specified, the remote hostname MUST NOT match for this request to be
accepted. If this attribute is not specified, request acceptance is