1:查找apache安装目录 : find / -name apache
2:重启apache:service httpd restart
3:多站点配置a打开
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#Include conf/extra/httpd-vhosts.conf
的#,
b修改/conf/extra/httpd-vhosts.conf,底部加
<VirtualHost *:80>
DocumentRoot /data/wwwroot/default/zb
ServerName zibian.net.cn
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /data/wwwroot/default/xf
ServerName www.huangge.tech
</VirtualHost>
c重启apache