tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Morphis" <gmorp...@gmail.com>
Subject Re: BASIC auth question, simple example...[SOLVED]
Date Wed, 26 Sep 2007 19:06:53 GMT
That was it David.. I was thinking / referred to the /webapps/ directory.

Thanks

On 9/26/07, David Delbecq <delbd+jakarta@oma.be> wrote:
> 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
>
>

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