AllowOverride für userdir

2858
Kristopher Ives

Ich muss allen userdir( host.com/~user) erlauben, Optionen in ihren zu überschreiben .htaccess, wie zum Beispiel php_value. Wo konfiguriere ich Apache AllowOverride?

2

3 Antworten auf die Frage

3
Marian

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> 
0
dag729

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

0
Thomas B

Dies hängt von Ihrem Setup ab. Damit der neueste Debian / Apache2-Benutzer auf http: // host / ~ zugreifen kann, muss das Modul "userdir" aktiviert sein. Sie müssen die Konfigurationsdatei dieses Moduls bearbeiten, um AllowOverride zu konfigurieren:

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

Apache muss nach diesem Update neu gestartet werden:

sudo service apache2 restart