tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <>
Subject Re: Apache 2.0.50 - Tomcat 5.0.28 - Mod_jk - .htaccess
Date Mon, 13 Feb 2006 18:53:31 GMT
Manuel Nicolas Ortuño wrote:
> JkMount /jsps/servlet/* ajp13
> JkMount /jsps/*.jsp ajp13
> #--------------
> But i get the same result:
> http://<my_server>/jsps/page.jsp  <-- not password needed
> http://<my_server>/jsps/page.js   <-- password needed
> You have any idea?

Since mod_jk mounts 'virtual' address space, unless
you have /jsps/ mounted inside apache DocumentRoot
the .htaccess will never be parsed.

The other option is to use
<Location /jsps >
    Auth stuf ...

That will force auth, but .htaccess will not
be used.
You should have in mind that mod_jk is proxy,
and that it communicates with the backend server,
and thus those two don't share the common file system.

Perhaps you could 'cheat' mod_jk by mapping it in the
same file space, but what would happen with the loadbalancer
that could forward requests to multiple servers?

Anyhow, I would suggest that you forget mod_jk and
.htaccess. Those two are simply incompatible by design.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message