I'm running apache-2.0.39 and tomcat-4.0.2 using mod_jk compiled on RH7.2. I
setup Apache to require authentication for a given virtual host using an
htpasswd file. Because the same virtual host has some JkMount directives,
some requests are forwarded on to Tomcat without authentication. How can I
configure this so Apache always handles and requires authentication for
requests prior to handing them off to Tomcat?

In my httpd.conf I have the following:

<VirtualHost *>
    DocumentRoot /drives/a/webapps/intranet1
    ServerName intranet1
    JkMount /*.jsp zeuscat
    JkMount /wup/* zeuscat
    ServerAlias *intranet1
    <Directory "/drives/a/webapps/intranet1">
       AuthUserFile /drives/a/webapps/.intranet1_passwd
       AuthName "restricted.zeus.intranet1"
       AuthType Basic
       Require valid-user
    </Directory>
</VirtualHost>

In my server.xml I have the following:

<Host name="intranet1" >
     <Context path="" docBase="/drives/a/webapps/intranet1"/>
     <Logger className="org.apache.catalina.logger.FileLogger"
             directory="logs"  prefix="intranet1_log." suffix=".txt"
             timestamp="true"/>
</Host>


--
Josh


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to