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 Mon, 30 Aug 2004 12:45:45 GMT
Thanks a lot for the examples but unfortunately it is still not working.
Can someone confirm that they are able to create a RemoteHostValve for a
given Context.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html 

Andrew

-----Original Message-----
From: Filip Hanik - Dev [mailto:devlists@hanik.com] 
Sent: August 27, 2004 4:20 PM
To: Tomcat Users List
Subject: Re: Configuring RemoteHostValve


\.gc\.ca$

-> ends with .gc.ca

Filip

----- Original Message ----- 
From: "Sinkinson,Andrew [NCR]" <Andrew.Sinkinson@ec.gc.ca>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
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:qm300@brandxdev.net] 
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


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

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


---------------------------------------------------------------------
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