Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-25-2008, 05:48 AM   #1
Registered: Aug 2005
Distribution: Fedora 13, RHEL 5.3, Ubuntu 10.04, Debian Lenny
Posts: 128

Rep: Reputation: 16
mod_jk bypasses apache authentication


I'm using an apache 2 server with mod_jk.
mod_jk mounts an webapp to /servlet
when I call the root-directory apache shows
up the authentication dialogue, when I call the
/servlets/-folder, mod_jk shows up but no
authentication is needed.
How to make apache show up the auth-dialogue
also on the mod_jk mounted folder?


Old 04-27-2008, 07:52 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 166Reputation: 166
You can put a <Locations> directive before the mod_jk stuff to do the authentication. For example:
  <Location "/someurl">
    Order allow,deny
    Allow from all
    AuthType Basic
    AuthName "Restricted Files"
    AuthUserFile /usr/local/apache2/passwd/passwords
    Require user joebloggs
  JkMount /someurl ajp13


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2.2.8 Mod_rewrite + Mod_Jk issues weisso5 Linux - Server 1 04-23-2008 12:26 PM
mod_jk and Apache 2.2 gdeckler Linux - Enterprise 2 02-08-2007 02:08 PM
Apache/Tomcat/Mod_JK chantman Linux - Software 1 04-05-2006 04:32 AM
tomcat,apache,mod_jk + localhost dashp Linux - Software 1 03-27-2005 08:06 PM
Apache, Tomcat problem with mod_jk WaveyDave Linux - Software 0 09-20-2001 08:28 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration