简体   繁体   English

无法使用 Ubuntu 服务器 AWS 查看 Apache 测试页

[英]Can't View Apache Test Page Using Ubuntu Server AWS

SOLUTION: I didn't open port 80 in the security groups.解决方案:我没有在安全组中打开端口 80。 Once doing that everything worked.一旦这样做,一切正常。

I have an AWS instance running Ubuntu. I installed Apache and Ngix with the following commands:我有一个运行 Ubuntu 的 AWS 实例。我使用以下命令安装了 Apache 和 Ngix:

 sudo apt install apache2 apache2-utils libapache2-mod-python libapache2-mod-php
sudo service apache2 stop
sudo apt install nginx
sudo service nginx stop
sudo service apache2 start

From my understanding, if I go to the public DNS of my AWS instance, I should be getting the Apache test page.根据我的理解,如果我 go 到我的 AWS 实例的公共 DNS,我应该得到 Apache 测试页。 However, it is just timing out.但是,它只是超时。 I viewed /var/www/html and the index.html page is there, along with another.html page.我查看了 /var/www/html 和 index.html 页面以及另一个 .html 页面。

Is there something else I need to do?还有什么我需要做的吗? Or configure in AWS?或者在 AWS 中配置?

Open AWS Management Console. 打开AWS管理控制台。 Go to Network & Security, then Security Groups. 转到网络和安全,然后进入安全组。 Highlight the correct item, click Inbound on the bottom. 突出显示正确的项目,单击底部的“入站”。 Add HTTP on port 80. 在端口80上添加HTTP。

You would definitely make sure port 80 is open and allowed.. open meaning your.network rules in aws, allowed meaning ubuntu can use it;您肯定会确保端口 80 已打开并允许.. open 表示 aws 中的网络规则,允许表示 ubuntu 可以使用它; sudo ufw allow 80 does it sudo ufw 允许 80 做到这一点

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在 aws Ubuntu 服务器上部署 django + apache - Unabled to deploy django + apache on aws Ubuntu server 无法通过 Ubuntu 22.04 操作系统上的 vscode sftp 扩展连接到 AWS EC2 服务器 - Can't connect to AWS EC2 server via vscode sftp extension on Ubuntu 22.04 OS AWS EC2 实例显示 Apache 测试页而不是网页 - AWS EC2 instance showing Apache test page instead of webpage Apache Ubuntu 默认页面未加载 - Apache Ubuntu Default Page not Loading 无法连接到 AWS RDS 上的服务器 - Can't connect to server on AWS RDS ASP.NET 核心应用程序未在 AWS 中运行 Linux EC2 实例而不是显示 Apache 测试页 - ASP.NET Core Application not Running in AWS Linux EC2 instance instead showing Apache Test Page 在aws上切换到https后无法访问服务器 - Can't access server since switching to https on aws select 无法为 SQL 服务器实例自定义 AWS 选项组 - Can't select custom AWS options group for SQL Server instance 如何修复 aws lightsail ubuntu 内部服务器错误? - how to fix aws lightsail ubuntu Internal Server Error? AWS Cognito:使用 postman 测试触发器 - AWS Cognito: Test triggers using postman
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM