From owner-freebsd-isp Tue Dec 5 8:20: 4 2000 From owner-freebsd-isp@FreeBSD.ORG Tue Dec 5 08:19:57 2000 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from ams1.aignet.ro (ams1.aignet.ro [194.176.168.1]) by hub.freebsd.org (Postfix) with ESMTP id 9E93237B69F for ; Tue, 5 Dec 2000 08:19:56 -0800 (PST) Received: from aignet.ro (mgmt.aignet.ro [194.176.168.4]) by ams1.aignet.ro (8.11.0/8.11.0) with ESMTP id eB5HJMX20671; Tue, 5 Dec 2000 19:19:22 +0200 Sender: mick@aignet.ro Message-ID: <3A2D1585.7041BA54@aignet.ro> Date: Tue, 05 Dec 2000 18:19:17 +0200 From: Mihai Claudiu Capatina X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: Gabriel Ambuehl Cc: isp@FreeBSD.ORG Subject: Re: htaccess only protecting one specific subdir? References: <15473937196.20001205161309@buz.ch> Content-Type: multipart/alternative; boundary="------------E05A6E1E5E2228DA8B20C4FF" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --------------E05A6E1E5E2228DA8B20C4FF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Let's say you have the following structure : /my_www_root_dir- |-subdir1 |-subdir2 |-.htaccess you can try to use with the right auth and after that define with the AllowOverride None directive.... This is untested so try it at your own risc...;-) Mick Gabriel Ambuehl wrote: > 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've been searching the Apache doc for quite some time now but the > only thing I found, which could be of some use, would be either > or and both seem to be valid only in the server > conf but not in .htaccess files. > > TIA & Best regards, > Gabriel > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message -- Mihai Claudiu Capatina Wireless Network Manager & Network Administrator AIG S.A. ( http://www.aignet.ro ) Phone : +40 95 102862 / +40 1 3102895 Fax : +40 1 3102896 --------------E05A6E1E5E2228DA8B20C4FF Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit  
Let's say you have the following structure :
/my_www_root_dir-
                                      |-subdir1
                                      |-subdir2
                                      |-.htaccess

you can try to use <Directory /my_www_root_dir>
 with the right auth and after that define
<Directory /my_www_root_dir/subdir1>
with the AllowOverride None directive....

This is untested so try it at your own risc...;-)

Mick
 
 

Gabriel Ambuehl wrote:

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've been searching the Apache doc for quite some time now but the
only thing I found, which could be of some use, would be either
<Directory> or <Location> and both seem to be valid only in the server
conf but not in .htaccess files.

TIA & Best regards,
 Gabriel

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message

-- 
Mihai Claudiu Capatina
Wireless Network Manager & Network Administrator

AIG S.A. ( http://www.aignet.ro )

Phone : +40 95 102862 / +40 1 3102895
Fax   : +40 1 3102896
  --------------E05A6E1E5E2228DA8B20C4FF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message