cd /etc/apache2/
vim apache2.conf //修改全局配置 AllowOverride NONE 全部改为 AllowOverride All
cd sites-enabled
rm 000-default.conf
cd ..
cd /sites-available
cp000-default.conf fiction.conf
vim fiction.conf
a2ensite fiction.conf //启用配置文件
/etc/init.d/apache2 restart
a2enmod rewrite //开启rewrite,伪静态