Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to allow all userdir (host.com/~user) to override options in their .htaccess, such as php_value. Where do I configure Apache to AllowOverride ?

share|improve this question
up vote 3 down vote accepted

You cannot set it inside <Location> or similar blocks. So you must work around it. In my default config the following is used, this seems to be a useful way of doing it (of course you need to adapt the path if you change the UserDir path, too)

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
share|improve this answer

It can be in /etc/httpd.conf, but YMMV.

share|improve this answer

This depends on your setup. In order for the latest Debian/Apache2 to access http:// host /~user, the "userdir" module must be enabled. You will need to edit this module's configuration file to configure AllowOverride:

vi /etc/apache2/mods-enabled/userdir.conf

Apache will need restarted after this update:

sudo service apache2 restart
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .