下文使用环境: 服务器系统Ubuntu16.04,Web服务Apache2.4.18
假设需求为配置一个个人网站 aaa.ccc.com 与 bbb.ccc.com 分别访问不同的站点
注:本文操作使用Xshell与Xftp进行文件修改
1. 修改hosts文件
使用Xftp按以下目录/etc/hosts打开hosts文件
可以看到以下内容
Your system has configured 'manage_etc_hosts' as True.
# As a result, if you wish for changes to this file to persist
# then you will need to either
# a.) make changes to the master file in /etc/cloud/templates/hosts.tmpl
# b.) change or remove the value of 'manage_etc_hosts' in
# /etc/cloud/cloud.cfg or cloud-config from user-data
#
127.0.0.1 localhost.localdomain VM-0-6-ubuntu
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
在
127.0.0.1 l


1533

被折叠的 条评论
为什么被折叠?



