tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: org.apache.catalina.valves.RemoteHostValve
Date Wed, 26 Nov 2003 18:20:39 GMT

The allow and deny attributes of RemoteHostValve are regular
expressions.  Try deny="" for example.

As for using the valve for a Context of a Server: it applies wherever
you put it in server.xml, so if you put it inside a specific <Context>
the valve will apply only to that context.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Drinkwater, GJ (Glen) []
>Sent: Wednesday, November 26, 2003 1:13 PM
>To: 'Tomcat Users List'
>Subject: org.apache.catalina.valves.RemoteHostValve
>I am trying to only allow localhost to access my tomcat server.  I have
>tried to put
><Valve className="org.apache.catalina.valves.RemoteHostValve"
>deny="*"/> in my context but it keeps on throwing an
>Catalina.start: java.lang.IllegalArgumentException: Syntax error in
>filter pattern *
>Can wild cards be used in this context?
>Does anybosy know how to only allow the localhost to access the server
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

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

View raw message