You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "S. Wong" <sw...@webprincess-designs.com> on 2002/05/10 09:33:25 UTC

Question about .htaccess

I have a friend who has an out-of-the-box Linux 7.2 install and using
Apache 1.3.20 (rpm install I believe) and for some reason, although in the
httpd.conf I Load/AddModule mod_auth and mod_auth_dbm and put a .htaccess
in a particular directory with the typical htaccess stuff, the directory
doesn't seem to "lock."  It just ignores the .htaccess file for some
reason.  On the server config, there's an AccessFile .htaccess and I even
put it into the VirtualHost tags and still it seems that the .htaccess file
is ignored. :-(  Any ideas?  Aside from probably recompiling.

Thanks.

--
Ciao ?:-)
Shirlyn, the WebPrincess



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Question about .htaccess

Posted by Owen Boyle <ob...@bourse.ch>.
"S. Wong" wrote:
> 
> I have a friend who has an out-of-the-box Linux 7.2 install and using
> Apache 1.3.20 (rpm install I believe) and for some reason, although in the
> httpd.conf I Load/AddModule mod_auth and mod_auth_dbm and put a .htaccess
> in a particular directory with the typical htaccess stuff, the directory
> doesn't seem to "lock."  It just ignores the .htaccess file for some
> reason.  On the server config, there's an AccessFile .htaccess and I even
> put it into the VirtualHost tags and still it seems that the .htaccess file
> is ignored. :-(  Any ideas?  Aside from probably recompiling.

You have to allow .htaccess files to override the apache config. The
simplest recipe is:

<Directory /path/to/dir>
  AllowOverride All
</Directory>

which allows any legal .htaccess directive to take effect. Check the
docs for more details.

Rgds,

Owen Boyle

PS This setting is actually the default, so you must've dis-allowed it
somewhere...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org