-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Baran,

On 9/24/14 12:19 PM, Baran Topal wrote:
> I understand that Tomcat 6 has valve and Chris, means of context, I
> have the feeling that this context.xml may be relevant but i have
> seen in some links, conf/server.xml is the place to manipulate.

It's usually better to configure components at the most limited scope
you require. If you need to filter/block access to all web
applications running on the server, then by all means use server.xml
instead.

Since you haven't really given us any requirements, it's tough to know
what you need to accomplish.

> And the thing is that i didn't see any selective setting to filter
> the IP for particular page group, namely, in my administrator path.
> This is the example that i found out. <Valve 
> className="org.apache.catalina.valves.RemoteAddrValve" 
> allow="133.133.133.133|127.d+.d+.d+|::1|0:0:0:0:0:0:0:1" />

Valves always apply to all URLs.

Note that you can't configure a Filter in server.xml -- it's got to be
in web.xml so you can't do site-wide filtering.

If you want to use the RemoteAddrFilter from Tomcat 7, I'm sure you
can simply copy it and its dependencies from Tomcat 7 into Tomcat 6.
RemoteAddrValve extends other classes that you'll need, too. Get the
source code to Tomcat 7 and read the code for RemoteAddrFilter to
determine what you'll need.

> P.S. tomcat mailing list is blocking this mail (treats as spam, why
> would it be?)

Seems to be working just fine.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUJA9IAAoJEBzwKT+lPKRYax0P+gL4BF3Hqmb6WvaPcRLASrPd
3iIXQvtPG5MnHyt4As4QqXRMV3fpKbcQb0TfnxAF4WOhR4kCn1vElo6r8l3M+H15
Cs6U0R02xIkLC4kt77hXtDqbJHww6/b39hl/MalqoMXrlax40XRczFoOVmTJph6s
ljjVZvIUCWFgKrmkXjJT9kYHvRuhPuH3L5bsvbQ5fZ5jtLPr5tRht2TJnsdezzzf
a54A1dSyDPPA51OkjSJgiUUIO//PhDndXUZxdZE5oq8y1P2ME9SN/UwNziOqsIQU
6ocdi2BoIex8OSF9yexCZdcns4PsEM1MvcZ2FcBrQFtOTwAHwPeOVHPrHh4h6hzL
b12DGMPj911KLzrL1cHJQYuRP1Bom2g40xyPSCr3cvEDkPoo+GaHw8HDD0F6Sokv
TW2l/Z8HRVOT7zotWSd7K2s4Ck8tz/0TPWsg6a4aWSrPJcdULG39H7yBQe2REH0j
PFu46oUJM0zsoQ4xny0oIW7RESjbmbDW0I2tfZJduAfCWdbZYgeJ9cmua1Jjc+gO
P9SunSM92a0mmBXj3CVAafO6NI6NitkDYRRUfveoUqHexz+4j48+yk8XU3WBSE/4
0Bg8OaB1nk5WqIOfP5GV3g9Dhf7resfXHJpoZ9P9OPGOtlQcFQ/p0vcn88Mm4Y51
iLXJ9fwVp8xvSdjZXl3a
=W03W
-----END PGP SIGNATURE-----

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

Reply via email to