httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Dalton <>
Subject [users@httpd] apache2, mod_jk and basic auth
Date Wed, 15 Jul 2009 21:00:43 GMT
Hi All

I have a nicely working Apache 2.2 proxying to Tomcat 6 via mod_jk (Ubuntu
Jaunty). I need to slap up a quick basic auth user/password on the site to
only allow special guests into the site for an initial limited release. I
thought I could just put something like this:

                AuthType Basic
                AuthName "Site Restricted to Special Guests"
                AuthUserFile /etc/apache2/passwd/passwords
                Require valid-user

In my Directory section. This works when I remove the JkMount - but as soon
as mod_jk is in play, authentication is ignored and it goes straight through
to tomcat. At present I am proxying everything to Tomcat so my JkMount is

    JkMount             /*              tomcat

tomcat defined as


In my file

Any ideas? Is this even possible? From reading various lists and doco it
seems to be a quite legitimate use of the modules.

Thanks in advance

I did have a signature, but the dog ate it.

google:steve.dalton | skype:spidieman | msn: |
yahoo:daltonsp | aol: spidie100 | twitter: @spidie | mynetfone:09203861

View raw message