RE: Configuring RemoteHostValve
I have tried using a lot of different regexps in the allow attribute of the valve element but have not had any luck. All I want is a regexps that validates that the dns is from .gc.ca Any help would be appreciated...thanks Andrew -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: August 26, 2004 4:18 PM To: Tomcat Users List Subject: Re: Configuring RemoteHostValve On Thu, Aug 26, 2004 at 01:53:26PM -0400, Sinkinson,Andrew [NCR] wrote: : I am having difficulty in setting up a RemoteHostValve for my WebApp. : [snip] :Valve className=org.apache.catalina.valves.RemoteHostValve : allow=*.gc.ca/ ^^^ The docs state this should be a regular expression. What you've included here is not a regular expression, but a wildcard. Review a couple of sites/docs on regexps and you'll see what I mean. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring RemoteHostValve
\.gc\.ca$ - ends with .gc.ca Filip - Original Message - From: Sinkinson,Andrew [NCR] [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, August 27, 2004 3:01 PM Subject: RE: Configuring RemoteHostValve I have tried using a lot of different regexps in the allow attribute of the valve element but have not had any luck. All I want is a regexps that validates that the dns is from .gc.ca Any help would be appreciated...thanks Andrew -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: August 26, 2004 4:18 PM To: Tomcat Users List Subject: Re: Configuring RemoteHostValve On Thu, Aug 26, 2004 at 01:53:26PM -0400, Sinkinson,Andrew [NCR] wrote: : I am having difficulty in setting up a RemoteHostValve for my WebApp. : [snip] :Valve className=org.apache.catalina.valves.RemoteHostValve : allow=*.gc.ca/ ^^^ The docs state this should be a regular expression. What you've included here is not a regular expression, but a wildcard. Review a couple of sites/docs on regexps and you'll see what I mean. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring RemoteHostValve
Has anyone been able to configure a Remote Host Filter for tomcat 5.0.27 that works? -Original Message- From: Sinkinson,Andrew [NCR] Sent: August 26, 2004 1:53 PM To: [EMAIL PROTECTED] Subject: Configuring RemoteHostValve Hi All, I am having difficulty in setting up a RemoteHostValve for my WebApp. I have created a configuration descriptor file named CST_CLIENT.xml with the following Context defined: Context path=/CST_CLIENT Valve className=org.apache.catalina.valves.RemoteHostValve allow=*.gc.ca/ !-- Valve className=org.apache.catalina.valves.RemoteAddrValve allow=142.135.*/ -- /Context I am running Tomcat 5.0.27 on Windows 2000 Server. I have no problem when I use RemoteAddrValve but cannot get the RemoteHostValve to work. Here is the error in the stdout.log file: SEVERE: Error deploying configuration descriptor CST_CLIENT.xml java.io.IOException: java.lang.IllegalArgumentException: Syntax error in request filter pattern *.gc.ca at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDepl oyer.java:494) at org.apache.catalina.core.StandardHost.install(StandardHost.java:863) I have tried a lot of different regex expressions but have not had any luck. If I try to perform an NSLOOKUP on the server this works also without any problem. What am I missing? Any help would be appreciated! Thanks in advance Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring RemoteHostValve
On Thu, Aug 26, 2004 at 01:53:26PM -0400, Sinkinson,Andrew [NCR] wrote: : I am having difficulty in setting up a RemoteHostValve for my WebApp. : [snip] :Valve className=org.apache.catalina.valves.RemoteHostValve : allow=*.gc.ca/ ^^^ The docs state this should be a regular expression. What you've included here is not a regular expression, but a wildcard. Review a couple of sites/docs on regexps and you'll see what I mean. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]