I am trying to get .htaccess to work under Apache, but the server doesn't seem to honor it.

In httpd.conf I have:

AllowOverride All

I have restarted the server with service httpd restart. I have also done a service httpd reload.

The docs suggest testing the configuration with a garbage .htaccess file. If the server succesfully reads the garbage .htaccess file, this should result in an error when retrieving a page from the directory. But I get no error, suggesting that the server is not parsing the file.

What might be wrong?

link|improve this question
feedback

1 Answer

up vote 0 down vote accepted

Start here. Within <VirtualHost 123.456.7.89>, you need to have the following:

<Directory "/host/domains/www.foobar.com">
Options All MultiViews
AllowOverride All
# or AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>

Source: http://forums.devshed.com/apache-development-15/htaccess-not-being-accessed-8977.html

link|improve this answer
1  
This wasn't exactly it, but I realized there was more than one 'AllowOverride' setting in httpd.conf. Fixing both did the trick. – Anders Feder Nov 25 '11 at 23:51
Glad I could help then! – Randolph West Nov 26 '11 at 3:07
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.