From owner-new-httpd Tue Apr 4 06:02:07 1995 Return-Path: owner-new-httpd Received: by taz.hyperreal.com (8.6.10/8.6.5) id GAA21601; Tue, 4 Apr 1995 06:02:07 -0700 Received: from life.ai.mit.edu by taz.hyperreal.com (8.6.10/8.6.5) with SMTP id GAA21594; Tue, 4 Apr 1995 06:02:04 -0700 Received: from volterra (volterra.ai.mit.edu) by life.ai.mit.edu (4.1/AI-4.10) for new-httpd@hyperreal.com id AA17659; Tue, 4 Apr 95 09:02:00 EDT From: rst@ai.mit.edu (Robert S. Thau) Received: by volterra (4.1/AI-4.10) id AA16453; Tue, 4 Apr 95 09:01:59 EDT Date: Tue, 4 Apr 95 09:01:59 EDT Message-Id: <9504041301.AA16453@volterra> To: new-httpd@hyperreal.com Cc: new-httpd@hyperreal.com In-Reply-To: <9504040801.AA17134@fyserv1.fy.chalmers.se> (message from Andy Polyakov on Tue, 4 Apr 1995 10:01:15 +0200) Subject: Re: httpd patches Sender: owner-new-httpd@hyperreal.com Precedence: bulk Reply-To: new-httpd@hyperreal.com Date: Tue, 4 Apr 1995 10:01:15 +0200 From: Andy Polyakov > NO, IT WON'T! At least not with NCSA 1.3: for cycle takes care of that. > > Hmmm... as I read the code, it will start checking for .htaccess files > in *subdirectories* of the directory named by the longest initial > substring which matches some directive in access.conf (or > DocumentRoot --- but that may be redundant). (Whew!) ??? NCSA httpd 1.3 always(!) starts searching .htaccesses from /. At least with default access.conf... So as apache_0.4, just checked. What have you got in access.conf? The same... I was trying to figure out your code. Fortunately each ~user reference leaves corresponding alias in 'a' array in http_alias.c and that's what I use to localize .htaccess search to users' subtrees: for cycle in tackle_on_docroot goes through aliases and locates corresponding real path. That's the bit I was missing... just spotted it in http_alias.c. Thanks. rst