tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Osvâneo A. Ferreira <osva...@ig.com>
Subject Re: Protectind directory
Date Mon, 25 Nov 2002 14:53:57 GMT
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" <dwbrown@webitplanet.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message