[thelist] Turning on .htaccess in Apache Mac OS X

Peter-Paul Koch pp.koch at gmail.com
Wed Nov 9 08:37:41 CST 2005

> >>  > How do I turn on .htaccess in my Apache on Mac OS X? I seem to have to
> >>  > put an AllowOverride All somewhere, but the Apache documentation is
> >>  > totally silent on the actual file I have to put this in. Besides, OS X
> >>  > is very adept at hiding all important Apache files.
> >>  >
> >>  > Could someone please tell me what to add to which file, and please
> >>  > specify a complete path name? Thanks.
> The file you need to put the AllowOverride All in is the httpd.conf file.
> On OS X that lives at:
>     /private/etc/httpd/httpd.conf

Changed that line to AllowOverride All.

> Note that Apple's default httpd.conf contains (at line 373 in my original)
> >>>
> # First, we configure the "default" to be a very restrictive set of
> # permissions.
> #
> <Directory />
>      Options FollowSymLinks
>      AllowOverride None
> </Directory>
> <<<
> So you could just change that to All.

OK, found that, too, and changed None to All, but .htaccess still
doesn't work. In one directory it contains

AddHandler server-parsed .shtml
AddType text/html .shtml

Standard SSI configuration, as far as I know. But it still doesn't work at all.

What am I doing wrong?

> Mind you, if you're hacking the httpd.conf, you might as well use the
> http.conf to do all the stuff you're planning to do in .htaccess
> files. That's the official line inn any case.

I just want to mess with content types in one test directory, so it's
definitely a local change that shouldn't be propagated to the entire

ppk, freelance web developer

More information about the thelist mailing list