apache2, mod_jk and basic auth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 just:

    JkMount             /*              tomcat

tomcat defined as

worker.list=tomcat
worker.tomcat.type=ajp13
worker.tomcat.host=localhost
worker.tomcat.port=8009
worker.tomcat.lbfactor=1

In my workers.properties 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
Steve

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

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

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux