tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <>
Subject Re: RemoteAddrValve
Date Thu, 02 Jun 2005 17:29:45 GMT
On Thu, Jun 02, 2005 at 12:45:15PM +0100, Janet Dickson wrote:
: I'm trying to use RemoteAddrValve to restrict access to a website to a 
: subnet in Tomcat 4.1

You may want to use a ServletFilter instead.  This is supported by the
2.3 servlet spec, which means it will be portable among containers and
will thus ease your migration to Tomcat 5.x in the future.

Using a Filter would also solve the other problem you mention, that you
find you can't put multiple addresses in the "allow" section.

: <Valve className="org.apache.catalina.valves.RemoteAddrValve"
:                 allow="" />
: but it doesnt seem to work as access from one of my IP addresses is 
: forbidden.

If possible, could you share the real IP addresses?  (If they're
internal-only (such as 10.x, 192.168.x, 172.16.x) then you won't expose
any private information posting them here.)  This may be as simple as a

: Also, can someone confirm whether it is necessary to restart the Tomcat 
: server (version 4.1) if I modify an .xml file in the webapps directory ?

Depends on which XML file.  If it's one of the files that's used by the
container -- context.xml, web.xml, and so on -- then yes, you'll have to
restart.   If it's a file that's loaded by your app on request, then
it's up to your code to decide whether to cache it or reload it every



software   --
tech news  --
code scan  --

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message