httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Lopez <dan...@rawbyte.com>
Subject Re: Recognizing .htaccess in non-apache directory.
Date Sat, 22 Dec 2001 12:59:12 GMT


http://httpd.apache.org/docs/configuring.html#htaccess

"Directives placed in .htaccess files apply to the directory where you place
the file, and all sub-directories."

See also the section "Locating and Merging .htaccess Files" at Ken's tutorial:

http://apache-server.com/tutorials/ATusing-htaccess.html



On Sat, Dec 22, 2001 at 07:35:55PM +0800, Andrew Tomazos wrote:
> My system administrator and myself are puzzled over Apache using a .htaccess
> file that it shouldn't know about.
> 
> The .htaccess file is located at:
> 
>    /home/fred/.htaccess
> 
> Apache is located at:
> 
>    /usr/local/apache/
> 
> In the httpd.conf file are the following statements which may provide clues:
> 
>   ServerRoot /usr/local/apache
>   DocumentRoot /home/fred/web
>   ScriptAlias /cgi-bin /home/fred/cgi
>   ScriptAlias /cgi /home/fred/cgi
> 
> (These are the only references containing /home/fred.)
> 
> When a change is made to /home/fred/.htaccess Apache reads and makes the
> changes to the configuration.
> 
> The question is that why is apache looking at that file?  The document root
> is /home/fred/web not /home/fred.
> 
> Any ideas appreciated.
> 
> Regards,
> Andrew.
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message