tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: RemoteAddrValve
Date Thu, 02 Jun 2005 19:14:39 GMT
Janet Dickson wrote:
> Hi
> 
> I'm trying to use RemoteAddrValve to restrict access to a website to a 
> subnet in Tomcat 4.1
> 
> Tried :
> <Valve className="org.apache.catalina.valves.RemoteAddrValve"
>                 allow="xxx.xxx.xxx.xxx/25" />
> 
> but it doesnt seem to work as access from one of my IP addresses is 
> forbidden.
> Also, I dont seem to be able to put multiple addresses in the allow 
> function ?

As per http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html 
this should be a regular expression. Multiple values should be comma 
separated.

> 
> 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 ?

It depends ;) See 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message