Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

3 Answers 3

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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