Howdy, The allow and deny attributes of RemoteHostValve are regular expressions. Try deny="my.host.uk" 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) [mailto:[EMAIL PROTECTED] >Sent: Wednesday, November 26, 2003 1:13 PM >To: 'Tomcat Users List' >Subject: org.apache.catalina.valves.RemoteHostValve > >Hi > >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="*.my.host.uk"/> in my context but it keeps on throwing an exception > >Catalina.start: java.lang.IllegalArgumentException: Syntax error in request >filter pattern *.my.host.uk > >Can wild cards be used in this context? > >Does anybosy know how to only allow the localhost to access the server >/context??? > >Glen > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
