这里写图片描述
接下来重启apache,sudo apache2ctl -k restart 即可
修改默认网页:
修改/etc/apache2/mods-available/dir.conf中的内容
原来是:
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>
添加上想要的/wordpress就行啦~
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm /wordpress
</IfModule>