Ideally you should be able to customize context in
"$TOMCAT_HOME\conf\app-yourapplicationname.xml"
as per your application needs .
But the documentation specifies
"Currently the SimpleRealm, JDBCRealm, and Logsetter modules are know to work
successfully as
"context local" modules. Other modules that can be used as "context local" modules and
would be
useful have yet to be identified."
how ever i tried specifing
<StaticInterceptor listings="false" /> in "server.xml"
and overrided this as
<StaticInterceptor listings="true" /> in "app-myApplication.xml"
and it worked ( i..e Directory listing was available only for /myApplication ) . while
the reverse
case didnt work.
-Suresh
Sourabh Kulkarni wrote:
> Isn't there any way to do the setting in webapp (probably web.xml), since
> when application is hosted on shared server these configurations may not be
> allowed by the hosting provider.
> -sourabh
>
> ----- Original Message -----
> From: Suresh <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 05, 2002 10:20 AM
> Subject: Re: How to protect directory
>
> > HI Pradeep,
> > Change the confiduration setting in the server.xml file located at
> "$TOMCAT_HOME$\conf" directory to
> >
> > <StaticInterceptor listings="false" />
> >
> > Restart the tomcat for the change to come in effect.
> > Thanks
> > -Suresh
> >
> > "[Pradeep Naik]" wrote:
> >
> > > Hi,
> > >
> > > I am using Tomcat V4.0 as a JSP/Servlet engine. I have following
> questions..
> > >
> > > User can request the page as (for example,
> > > http://domain:8080/jsp/workdirectory/login.jsp ) In such case, how do I
> > > proetect the directory jsp/workdirectory so that users will not have
> access
> > > to see the contents in these directory.
> > >
> > > I think, I may need to do something in the server.xml file. Can you
> please
> > > help me out..
> > >
> > > Thanks..
> > >
> > > Pradeep..
> > >
> > >
> ___________________________________________________________________________
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources: http://java.sun.com/products/servlet/external-resources.html
> > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> >
> ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html