From owner-freebsd-isp Tue Dec 5 8:14: 1 2000 From owner-freebsd-isp@FreeBSD.ORG Tue Dec 5 08:13:59 2000 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from rad3.1stup.com (rad3.1stup.com [209.143.242.34]) by hub.freebsd.org (Postfix) with ESMTP id 2263437B400 for ; Tue, 5 Dec 2000 08:13:54 -0800 (PST) Received: from veager (ip51.jackson10.ms.pub-ip.psi.net [38.36.61.51]) by rad3.1stup.com (8.10.1/8.10.1) with SMTP id eB5GDb929810 for ; Tue, 5 Dec 2000 08:13:37 -0800 Message-ID: <006501c05ed6$501a7f60$333d2426@siteplus.net> From: "Jim Weeks" To: Subject: htaccess only protecting one specific subdir? Date: Tue, 5 Dec 2000 11:13:30 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org ----- Original Message ----- From: "Jim Weeks" To: "Gabriel Ambuehl" Sent: Tuesday, December 05, 2000 11:11 AM Subject: Re: htaccess only protecting one specific subdir? > Gabriel Ambuehl dispersed into the ether > > > Hello, > > I'm desperately seeking for a way to protect a directory via .htaccess > > and basic authentication which normally is pretty easy, but I need the > > .htaccess to reside one directory level higher in the tree and still > > only protect the one subdir: > > > > /.htaccess #should protect > > /subdir #but leave all other files/directory open > > I never actually had an occasion to this, but it seems to be easy stuff. > The answer is in the Limit directive. The .htaccess file in the main > directory is overridden by placing another .htaccess in the subdirectory. > Simply remove the GET form the Limit directive in the subdirectory .htaccess > file. In fact I believe you could just put by itself. I will > leave it up to you to experiment. > > AuthUserFile /usr/home/simpsons/.htpasswd > AuthGroupFile /dev/null > AuthName ByPassword > AuthType Basic > > require valid-user > > > Hope this helps, > > Jim > ________________________________________________________ 1stUp.com - Free the Web Get your free Internet access at http://www.1stUp.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message