LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


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

Rep: Reputation: 16
mod_jk bypasses apache authentication


Hi,

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?

thanks,

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

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


Reply


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 01:26 PM
mod_jk and Apache 2.2 gdeckler Linux - Enterprise 2 02-08-2007 03:08 PM
Apache/Tomcat/Mod_JK chantman Linux - Software 1 04-05-2006 05:32 AM
tomcat,apache,mod_jk + localhost dashp Linux - Software 1 03-27-2005 09:06 PM
Apache, Tomcat problem with mod_jk WaveyDave Linux - Software 0 09-20-2001 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:44 PM.

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