You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Marc Slemko <ma...@znep.com> on 1998/02/09 17:40:01 UTC
Re: mod_auth-any/1778: Apache ignores .htaccess files in cgi-bin directories when using AllowOverride speed-up trick (fwd)
The following reply was made to PR mod_auth-any/1778; it has been noted by GNATS.
From: Marc Slemko <ma...@znep.com>
To: Apache bugs database <ap...@apache.org>
Cc: Subject: Re: mod_auth-any/1778: Apache ignores .htaccess files in cgi-bin directories when using AllowOverride speed-up trick (fwd)
Date: Mon, 9 Feb 1998 09:38:22 -0700 (MST)
---------- Forwarded message ----------
Date: Mon, 9 Feb 1998 11:31:50 -0500 (EST)
From: Allen Chen <ac...@nssdc.gsfc.nasa.gov>
To: coar@hyperreal.org, dgaudet@hyperreal.org
Cc: apache-bugdb@apache.org
Subject: Re: mod_auth-any/1778: Apache ignores .htaccess files in cgi-bin directories when using AllowOverride speed-up trick
Hi guys,
I think I found the problem. I'm not sure if it's considered a bug or an
error on my part, but what I had done was this:
<Directory />
AllowOverride None
</Directory>
<Directory /opt/local/etc/httpd/htdocs>
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
<Directory /opt/local/etc/httpd/cgi-bin>
AllowOverride All
</Directory>
...
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/
^^^
Notice that /cgi-bin/'s ScriptAlias points to /USR/local... instead of
/OPT/local... This worked because /usr/local is a link to /opt/local.
However, probably because of the way Apache determines the directory tree,
the <Directory /opt/local/.../cgi-bin> did not get evaluated for
/usr/local/.../cgi-bin.
To make a convoluted story short, changing the ScriptAlias to
ScriptAlias /cgi-bin/ /opt/local/etc/httpd/cgi-bin/
^^^
fixed the problem. :)
-Allen
Allen Chen / Systems Programmer / Raytheon STX Corporation ////
SSDOO Software, Systems / International Solar-Terrestrial Physics /////
e-mail: achen@nssdc.gsfc.nasa.gov / voice: (301) 286-7376 //////
> Synopsis: Apache ignores .htaccess files in cgi-bin directories when using AllowOverride speed-up trick
>
> Comment-Added-By: coar
> Comment-Added-When: Sat Feb 7 06:47:49 PST 1998
> Comment-Added:
> Are you sure that your ScriptAlias and Directory directives
> are referring to the same directory? I.e., do you have a
>
> ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/
>
> to match your "<Directory /usr/local/etc/httpd/cgi-bin>"?