tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Rohde <...@ordix.de>
Subject Re: Please somebody can translate this configuration in tomcat form for server.xml or another xml config file?
Date Fri, 27 Jan 2012 12:34:30 GMT


Am 27.01.2012 13:23, schrieb Luciano Andress Martini:
> I need to do this in tomcat6:
> Apache2 form:
> <Directory /var/www/temporarios/upload_contracheque>
>                  Order allow,deny
>                  deny from all
> </Directory>
>
>
> Thank you friends!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
You need to define a Remote Adress Filter for your Context, Host or 
Engine. See 
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote_Address_Filter 
for more details.

I think

<Valve className="org.apache.catalina.valves.RemoteAddrValve" deny=".*"/>

should work for you.

Thomas


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


Mime
View raw message