Ubuntu LAMP 配置

开启Rewrite

sudo a2enmod rewrite

然后修改/etc/apache2/apache2.conf

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All  --把None 改成All
        Require all granted
</Directory>

你可能感兴趣的:(Ubuntu LAMP 配置)