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

Reply via email to