I have many times successfully enabled htaccess files on mac os x CLIENT, but every time I try to enable htaccess on mac os x server (10.2.8) it fails. I have tried editing the AllowOverride directive in httpd.conf and httpd_macosxserver.conf and everytime apache refuses to restart. Does any one know how to get htaccess working in SERVER?
I have tried uncommenting out the default AllowOverride directive (in both httpd.conf and httpd_macosxserver.conf): # AllowOverride None
and changing it to:
AllowOverride All
and
AllowOverride AuthConfig
(preferred method)
I have been editing the files using sudo pico. Therefore the permisisons and ownership remain unchanged. Also after I make the edit and it does not restart, I go back and remove the edit (comment it out) and restart the sever using the same process without failure.
Here is the output when I try to restart apache (with the edit):
----------------------------------------------------------------------------
[www:/etc/httpd] caupwc% sudo apachectl start
Syntax error on line 515 of /etc/httpd/httpd.conf:
AllowOverride not allowed here
/usr/sbin/apachectl start: httpd could not be started
----------------------------------------------------------------------------
Since I am simply removing the hash I know I am not putting the directive in the wrong place.
I also looked around in the log file but it is not displaying any errors regarding the configuration there.
Please no responces regarding CLIENT - I already know how to do this in CLIENT.