Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tomcat allow hosts trusted on port 8080

2 views
Skip to first unread message

geo_newbie

unread,
Nov 29, 2011, 3:32:00 PM11/29/11
to
Hello
We're using Tomcat 6.0.32
We have two connectors defined in server.xml
HTTP on port 8080 AJP on port 8009.


We want to trust all traffic on port 8009 because this is
authenticated by our filter.

However we want to only allow certain ip addresses incoming requests
on port 8080 eg allow="n.n.n.n"
First question is: can the filter detect the port on which the
request was received?

I know it's possible to add a Valve to an Engine, Host or Context
And it's possible to add the RemoteAddressFilter to the web.xml
But I don't see a way to configure a Valve on a particular Connector

Thanks
0 new messages