httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (David Robinson)
Subject Apache looks for .htaccess
Date Thu, 17 Aug 1995 10:46:00 GMT
Can I suggest the following be added to access.conf-dist:

#This stops apache looking for .htaccess files in directories above
#your document root. Comment this out only if you want apache to
#look for /.htaccess, /usr/.htaccess, /usr/local/.htaccess etc.
<Directory />
AllowOverride None

For people with with documentroot below an automount point, the
performance penalty for checking for the .htaccess files is severe;
up to 1/2 second if you use NIS+.


>Article 3098 (53 more) in comp.infosystems.www.servers.unix:
>From: Barry Cornelius <>
>Subject: Telling NCSA httpd not to look for .htaccess file
>Date: Thu, 10 Aug 1995 17:21:41 +0100
>We use Version 1.4 of the NCSA http server on Solaris 2.3 (soon to be
>Solaris 2.4).  If the URL: 
>is accessed, the ~username part is translated into:
>   /home/machinename/groupname/username
>Whilst processing the URL, the server looks for the files:
>   /.htaccess
>   /home/.htaccess
>   /home/machinename/.htaccess
>   /home/machinename/groupname/.htaccess
>   /home/machinename/groupname/username/.htaccess
>The attempt to access the entry /home/.htaccess triggers an error message
>from the automounter which looks like: 
>   Aug 10 14:32:22 hercules automountd[145]: server .htaccess not responding
>I want to be able to configure the server so as not to look in /home for
>the .htaccess file.  We are using the distributed version of the
>access.conf file.  It seems that if I add the lines: 
>   <Directory /home>
>   AllowOverride None
>   Options None
>   </Directory>
>the problem goes away.  BTW, I don't really understand these lines.
>Are these lines right?  Will they have any effect that I'm not expecting? 
>Do I need both the AllowOverride and the Options lines? 
>If I make this change, then it would seem sensible to add similar lines
>for the directories /, /home/machinename and /home/machinename/groupname. 

View raw message