小编Mat*_*ang的帖子

为什么当我输入我的网站的域名时没有加载 index.html?

这是我第一次在 Ubuntu 12.04 上使用 Amazon EC2 Linux 微型实例。

我注意到它默认没有安装 Apache,所以我安装了sudo apt-get install apache2. 安装后,/var/www/index.html存在并且我验证了 Apache2 正在运行。

当我这样做时curl http://localhost:80,它成功地返回了/var/www/index.html.

但是,当我在浏览器中输入公共 DNS 名称时出现page not found错误。

为什么不index.html加载以及解决此问题的方法是什么?

httpd amazon-ec2 apache-2.2

0
推荐指数
1
解决办法
4061
查看次数

标签 统计

amazon-ec2 ×1

apache-2.2 ×1

httpd ×1