我在Amazon EC2上用Ubuntu OS创建了一个微实例 . 但即使安装了LAMP Server,我也无法访问公共DNS .
在我的apache.conf中我可以看到(那里没有可用的文档配置ID) -
# Include the virtual host configurations:
Include sites-enabled/
里面 sites-enabled 我有两个文件 - default & default-ssl .
默认包含
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
我的 apache2 正在服务器上运行& /VAR/WWW/ 包含一个index.php文件,我在其中编写了一些用于测试的虚拟代码 .
我尝试浏览它并阅读某处以使用源 0.0.0.0/0
在DNS的INBOUND中添加规则 . 我也这样做了,但是当我试图访问公共DNS时,它仍然是"This webpage is not available" .
2 回答
我通过在实例的安全组中添加HTTP规则来解决它 .
注意: - 从 ##aws IRC Channels 获得帮助 .
点击您的实例
向下滚动到页面底部的信息部分
选项"Description"中的
,找到"Security groups"
点击它们中的每一个,或者唯一一个
在"Inbound"标签中单击"Edit"
点击"Add Rule"
类型 - >选择HTTP,源 - >任意位置