【发布时间】:2017-08-21 15:05:31
【问题描述】:
我在本地机器上安装了 Apache。我为 www.mysite.local 和 www2.mysite.local 创建了 2 个带有 conf 文件的 Apache 虚拟主机。我按照本教程进行操作:https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts
现在我想为 www.google.com 创建一个 conf 文件,并在 index.html 文件中显示一条消息。我遵循相同的教程,我在 /var/www/www.google.com/public_html/ 中创建了一个 index.html 文件,我在 /etc/apache2/sites-available 中创建了一个文件 www.google.com.conf,我编辑我的本地文件,在我的 VPS IP 地址上添加 www.google.com。但是 google 没有显示我想要的消息并显示错误:“Your connection is not private”。
此过程不起作用,因为它不是本地站点?不知道有没有其他流程配置非本地网站?
谢谢!
【问题讨论】:
标签: apache ubuntu web-config localhost