Re: specify directory for specific port in the same host
Jan Heise <[email protected]> Wed, 10 May 2006 08:35:33 +0200
| Newsgroups | gmane.text.xml.resin.user |
|---|---|
| Message-ID | <[email protected]> |
You're missing the url-pattern like:
<web-resource-collection>
<url-pattern>/*</url-pattern>
</web-resource-collection>
see:
http://www.caucho.com/resin-3.0/security/authorization.xtp#security-constraint
hth,
Jan
YouchunChen wrote:
> I've tested 2 <server> config for different port,
> and one is access-free, the other just allowed 2 IP access.
> But I could still access the resource from IP not on the allow list.
> The following is what I added:
> <security-constraint>
> <ip-constraint>
> <allow>127.0.0.1</allow>
> <allow>192.168.1.178</allow>
> </ip-constraint>
> </security-constraint>
>
> When I connect from 192.168.1.108, should be blocked but didn't, why?
>
>
>