apache 2.4.7

Ubuntu 14.04 Apache 2.4.7 Drupal Clean URLs failed


在ubuntu14.04下面装了apache2.4.7和drupal后,drupal的clean urls功能总是无法开启。apache rewite模块正常开启。查了半天资料居然是需要将apache2.conf里。

<Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all denied
</Directory>

<Directory /usr/share>
        AllowOverride None
        Require all granted
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

将全部AllowOverride 改成 All。怎么也没想到会是这样。记下来,怕以后忘了。