tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <delbd+jaka...@oma.be>
Subject Re: BASIC auth question, simple example...
Date Wed, 26 Sep 2007 18:36:19 GMT
Greg Morphis a écrit :
> I created the folder
> C:\Tomcat5.5\webapps\security\
>   
So webapp name is "security", reachabel by http://server/security/
>    <security-constraint>
>       <web-resource-collection>
>          <web-resource-name>Protected Area</web-resource-name>
> 	 <!-- Define the context-relative URL(s) to be protected -->
>          <url-pattern>/security/*</url-pattern>
>       </web-resource-collection>
>       <auth-constraint>
>          <!-- Anyone with one of the listed roles may access this area -->
> 	 <role-name>dau</role-name>
>       </auth-constraint>
>     </security-constraint>
You mapped security constraint to folder "/security/*" in your webapp. 
That means http://server/security/security/*
You probably should, considering where you index.xhtml is, map the 
security constraint to /* :)


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message