apache2配置双站点配置

双站点配置

ubuntu配置在/etc/apache2/sites-available/000-default.conf

https://www.cnblogs.com/lishanlei/p/7978783.html 配置信息

https://blog.csdn.net/naturebe/article/details/54933844 双站点配置

添加ServiceName AAA.com

ServiceAlias www.AAA.com

]

修改登录AAA.com的hosts 就是建立域名解析

在/etc/apache2/sites-available 目录下 sudo a2ensite 000-default.conf

sudo a2ensite 001-default.conf

然后重启服务 service apache2 restart

猜你喜欢

转载自www.cnblogs.com/zhouguanglu/p/10214470.html
今日推荐