Re: specify directory for specific port in the same host

Jan Heise <[email protected]> Wed, 10 May 2006 10:49:27 +0200
Newsgroups gmane.text.xml.resin.user
Message-ID <[email protected]>
I have the following (slightly edited) blocks in my web.xml and it works:

   <authenticator type="com.caucho.server.security.XmlAuthenticator">
.
.
.
   </authenticator>

   <login-config>
     <auth-method>BASIC</auth-method>
   </login-config>

   <security-constraint>
     <web-resource-collection>
       <url-pattern>/*</url-pattern>
     </web-resource-collection>
     <ip-constraint>
       <allow>xxx.xxx.xxx.xxx/24</allow>
       <allow>127.0.0.1/32</allow>
     </ip-constraint>
   </security-constraint>

   <security-constraint url-pattern='/pdfmail' role-name='pdfmail'/>


If this does not help you, I'd recommend you attach your resin.conf and 
web.xml to your reply.


hth,

Jan


YouchunChen wrote:
> It still failed after adding <web-resource-collection> content.
> Maybe <ip-constraint> <allow> tag doesn't implement yet.
> 
> 
>