Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 25881 invoked from network); 30 Sep 2003 15:28:45 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 30 Sep 2003 15:28:45 -0000 Received: (qmail 33613 invoked by uid 500); 30 Sep 2003 15:28:18 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 33585 invoked by uid 500); 30 Sep 2003 15:28:17 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 33571 invoked from network); 30 Sep 2003 15:28:17 -0000 Received: from unknown (HELO fusilier.eur.sas.com) (212.185.185.14) by daedalus.apache.org with SMTP; 30 Sep 2003 15:28:17 -0000 Received: from opal.eur.sas.com ([130.96.15.37]) by 130.96.15.9 with InterScan Messaging Security Suite; Tue, 30 Sep 2003 17:27:16 +0200 Received: from emeagate02.emea.sas.com (emeagate02.emea.sas.com [130.96.15.140]) by opal.eur.sas.com (8.12.8/8.12.9) with ESMTP id h8UFRGpO008754 for ; Tue, 30 Sep 2003 17:27:16 +0200 (METDST) Received: from emeamail02.emea.sas.com ([130.96.14.32]) by emeagate02.emea.sas.com with Microsoft SMTPSVC(5.0.2195.4453); Tue, 30 Sep 2003 17:27:16 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Apache Authentication with Tomcat Date: Tue, 30 Sep 2003 17:27:15 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Apache Authentication with Tomcat Thread-Index: AcOHZijeovbltcWASgGrhHZYzxtCgAAAKzLA From: "Morgan Pyne" To: "Tomcat Users List" X-OriginalArrivalTime: 30 Sep 2003 15:27:16.0300 (UTC) FILETIME=[5458E8C0:01C38767] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Neil, Use a "Location" directive in your httpd.conf instead. e.g.: AuthType Basic AuthName "FGIC Downloads" AuthUserFile d:\apache\apache2\conf\passwords AuthGroupFile d:\apache\apache2\conf\groups Require group FGICMoodys "Directory" directives apply to the filesystem, "Location" directives = apply to the URL space. See the Apache manual for more details: http://httpd.apache.org/docs-2.0/mod/core.html#location Regards, Morgan > -----Original Message----- > From: Boemio, Neil (GEI, FGI) [mailto:Neil.Boemio@ge.com]=20 > Sent: Tuesday, September 30, 2003 17:17 > To: tomcat-user@jakarta.apache.org > Subject: Apache Authentication with Tomcat >=20 >=20 > I'm trying to protect a /downloads url in apache. My webapp=20 > in Tomcat is in ROOT. So in the workers2.properties file=20 > under apache, I have: >=20 > # Map the webapp to the Web server uri space > [uri:/*] > info=3Dmy website >=20 > So my app is working fine .... requests for /* are passed to=20 > Tomcat and things are wonderful. But I want to protect=20 > /downloads using apache. But there really is no directory=20 > under apache called \apache\apache2\htdocs\downloads. There=20 > is no need for one since requests are sent to Tomcat. The=20 > real directory is \Tomcat4.1\webapps\ROOT\downloads. >=20 > When I remove [uri:/*] from workers2.properties and create a=20 > dummy htdocs\downloads directory under apache, the apache=20 > authentication works fine. But when I put [uri:/*] back, I=20 > do not get prompted for ID/Password. Here is what I have in=20 > httpd.conf. Any ideas? >=20 > > AuthType Basic > AuthName "FGIC Downloads" > AuthUserFile d:\apache\apache2\conf\passwords > AuthGroupFile d:\apache\apache2\conf\groups > Require group FGICMoodys > >=20 > I tried using: d:\Tomcat4.1\webapps\ROOT\downloads> but that didn't work. =20 > Ideally, I want to tell apache to protect a URL not a file=20 > system path, but obviously, that is not the syntax for the=20 > Directory directive. >=20 > Windows 2000 > Tomcat 4.1.27 > Apache 2.0.47 > JK2 2.0.43 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org