From owner-freebsd-questions Thu Mar 8 15:36:13 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lcmail2.lc.ca.gov (lcmail2.lc.ca.gov [165.107.12.11]) by hub.freebsd.org (Postfix) with ESMTP id D394337B718 for ; Thu, 8 Mar 2001 15:36:08 -0800 (PST) (envelope-from drewt@writeme.com) Received: from CONVERSION-DAEMON by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) id <0G9W00H01K8BR9@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.ORG; Thu, 8 Mar 2001 15:36:11 -0800 (PST) Received: from tagalong ([165.107.42.167]) by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) with SMTP id <0G9W00G5NK8A67@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.ORG; Thu, 08 Mar 2001 15:36:10 -0800 (PST) Date: Thu, 08 Mar 2001 15:36:05 -0800 From: Drew Tomlinson Subject: RE: Apache Help (.htaccess) In-reply-to: <3AA7E381.C9F6642D@journalstar.com> To: 'Tony Wells' , "'Gerald T. Freymann'" Cc: "FreeBSD Questions (E-mail)" Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Content-type: text/plain; charset="us-ascii" Content-transfer-encoding: 7bit Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Tony Wells [mailto:awells@journalstar.com] > Sent: Thursday, March 08, 2001 11:55 AM > To: Drew Tomlinson > Cc: FreeBSD Questions (E-mail) > Subject: Re: Apache Help (.htaccess) > > > That page looks pretty complete. Are you using an absolute path for > your password file in your .htaccess? Yes. I'm expecting my browser to prompt me for a password whenever I attempt to access a file in the protected directory. This is what it's supposed to do, right? So assuming it is, my password file is /usr/local/etc/apache/password. My web data is in /usr/local/share/doc/apache/dir/protected.dir. I have created a file called .htaccess in protected.dir and used htpasswd to create my password file. I used the -c option for the first allowed user and then dropped the -c to add addtional users. So, here is my .htaccess file: 114 Blacksheep# cat .htaccess AuthUserFile /usr/local/etc/apache/password AuthGroupFile /dev/null AuthName "Protected Directory" AuthType Basic require user user1 user2 I've issued a kill -1 `cat /var/run/httpd.pid` to see if that would make the password required. It didn't. I then rebooted my machine but that did not help either. Do you have any idea why this isn't working? Thanks for your help! Drew > Drew Tomlinson wrote: > > > > I followed the directions at > http://kb.indiana.edu/data/abeq.html?cust=2008 > > to password protect one of my web directories using a .htaccess and > > corresponding password file but it is not working. Does > anyone have any > > ideas on what I may have overlooked? What can I post or > where can I look to > > help diagnose this problem. > > > > Thanks, > > > > Drew > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message