You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tom Santos <to...@tomsantos.com> on 2000/04/15 22:56:22 UTC

Restricting Access Using Apache Server and Tomcat

I've sucessfully plugged Tomcat into Apache but I really really need to put
password protection on a directory that I'm serving JSPs out of.  I know how
to restrict access to normal directories in Apache but I can't figure out
how to do it for Tomcat directories.  For example, how would you put
password protection on the "examples" directory in the Tomcat distribution?

-Tom-


Re: Restricting Access Using Apache Server and Tomcat

Posted by Jan Labanowski <jk...@osc.edu>.
in tomcat.conf put, for example:

ApJServMount /examples /root

<Location /examples>
AuthType Basic
AuthName "For internal users only"
AuthUserFile /usr/local/apache/auth/htpasswd
AuthGroupFile /usr/local/apache/auth/htgroup
AuthType Basic

<Limit GET POST>
require group demo
</Limit>
</Location>



On Sat, 15 Apr 2000, Tom Santos wrote:

> I've sucessfully plugged Tomcat into Apache but I really really need to put
> password protection on a directory that I'm serving JSPs out of.  I know how
> to restrict access to normal directories in Apache but I can't figure out
> how to do it for Tomcat directories.  For example, how would you put
> password protection on the "examples" directory in the Tomcat distribution?
> 
> -Tom-
> 
> 
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
> 

Jan K. Labanowski            |    phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center    |    Internet: jkl@osc.edu 
1224 Kinnear Rd,             |    http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163      |    http://www.osc.edu/