tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sinkinson,Andrew [NCR]" <Andrew.Sinkin...@ec.gc.ca>
Subject RE: Configuring RemoteHostValve
Date Thu, 26 Aug 2004 19:44:41 GMT
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: tomcat-user@jakarta.apache.org
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message