ubuntu中apache2更换域名和首页的方法
ubuntu中更换域名的方法
进入apache2配置目录
cd /etc/apache2/site-available
编辑文件000-default.conf
vim 000-default.conf
修改
ServerName www.xxx.com
保存关闭
shift+; wq
完成
更换首页的方法:
cd /etc/apache2/mods-enabled/
vim dir.conf
修改 DirectoryIndex index.php