Hi David,

Thank for help. I found a solution. Added in WEB-INF/web.xml a directive:
<security-constraint>
and tomcat-users.xml a user, password and role. Make a test and ok.

See you.

Osvāneo A. Ferreira

----- Original Message -----
From: "David Brown" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 10:13 AM
Subject: Re: Protectind directory


> Osvāneo A. Ferreira writes:
>
> > Hi,
> >
> > I want protect a directory in my structure (
http://localhost/directory )
> > I use Apache+Tomcat and all test, it“s failed.
> > Try .htaccess of apache, but nothing.
> > Try permission  org.apache.naming.JndiPermission
"jndi://localhost/examples/*" , but nothing.
> >
> > How I do ?
> >
> >
> > Osvāneo A. Ferreira
>
>
>
> Hello, u need to supply more info (how u build is important):
> OS:
> TOMCAT VERSION:
> PLATFORM:
> ENVIRONMENT:
> NETWORK:
> BUILD: ant (build.xml), scripts (.sh , .bat, manual, etc.)
>
> if u want tomcat directory protection don't fiddle around with apache (i
> assume u mean httpd.conf). the tomcat instructions r very clear if u
> downloaded: jakarta-tomcat-x.y.z-src. u have to build a <directory> w/
> WEB-INF and its own web.xml file (preferably using a war/jar file) where u
> define the protected directory something like this:
>
> $TOMCAT_HOME
>           |
>           /webapps
>                  |<protected_dir>
>                                 |
>                                 /WEB-INF
>                                        |
>                                        /web.xml
>
> u must be able to generate a war file and put it in your "<webapps>"
> directory and then bounce ur tomcat server (i prefer to use:
> http://localhost/manager/install?path=<protected_dir>). get the src as
> described above and read thoroughly and carefully. hope this helps, david.
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to