Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Apache .htaccess vs. realms in tomcat

Tim Funk

2004-01-26

Replies:

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: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.