Baran Topal wrote:
Hi;

Recently joined, first mail

I have the following filtering which works fine on Tomcat 7 but not on
Tomcat 6... It gives just 404.

<filter> <filter-name>Remote Address Filter</filter-name>
<filter-class>org.apache.catalina.filters.RemoteAddrFilter</filter-class>
<init-param> <param-name>allow</param-name>
<param-value>127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1</param-value>
</init-param> </filter> <filter-mapping> <filter-name>Remote Address
Filter</filter-name> <url-pattern>/administrator/*</url-pattern>
</filter-mapping>

How can I apply this filter on Tomcat 6.

Details of Tomcat 6
Server version: Apache Tomcat/6.0.36
Server built:   Oct 16 2012 09:59:09
Server number:  6.0.36.0
OS Name:        Windows 7
OS Version:     6.1
Architecture:   amd64
JVM Version:    1.7.0_21-b11
JVM Vendor:     Oracle Corporation

Regards.


Hi. I had a quick look at the on-line documentation for Tomcat 6, and I don't see a remote address *filter* there. Tomcat 7 has it, but Tomcat 6 does not seem to have it.
Tomcat 6 has a Valve for that.

https://tomcat.apache.org/tomcat-6.0-doc/config/filter.html
https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to