You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Greg Morphis <gm...@gmail.com> on 2007/09/26 21:06:53 UTC

Re: BASIC auth question, simple example...[SOLVED]

That was it David.. I was thinking / referred to the /webapps/ directory.

Thanks

On 9/26/07, David Delbecq <de...@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


RE: BASIC auth question, simple example...[SOLVED]

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Greg Morphis [mailto:gmorphis@gmail.com] 
> Subject: Re: BASIC auth question, simple example...[SOLVED]
> 
> I was thinking / referred to the /webapps/ directory.

Note the comment in web.xml:

> > >  <!-- Define the context-relative URL(s) to be protected -->

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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