To use .htaccess just make sure there is a physical directory for the mapping for the servlet. (Even though tomcat won't use it)

For example lets say tomcat handles all the requests for /cowbell such that tomcat also gets the request for:
/cowbell/is/the/prescription


So you could create a directory called /cowbell/is/the and place an .htaccess file there so you can secure the prescription using the appropriate require directives.

(I think)

-Tim

Alexander Jay Storman wrote:

Is there anyway to secure a servlet via .htaccess in apache2 using jk2 with tomcat5 or do I have to use realms.
Ideally, I would setup access via directory access using a .htaccess file, but all the documentation I have read seems to point to me needing to use realms and not using .htacess files.
Is this the case?
If it is possible to use .htaccess, does a HOWTO exist?


Thanks.



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



Reply via email to