简体   繁体   中英

Can't View Apache Test Page Using Ubuntu Server AWS

SOLUTION: I didn't open port 80 in the security groups. Once doing that everything worked.

I have an AWS instance running Ubuntu. I installed Apache and Ngix with the following commands:

 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. However, it is just timing out. I viewed /var/www/html and the index.html page is there, along with another.html page.

Is there something else I need to do? Or configure in AWS?

Open AWS Management Console. Go to Network & Security, then Security Groups. Highlight the correct item, click Inbound on the bottom. Add HTTP on port 80.

You would definitely make sure port 80 is open and allowed.. open meaning your.network rules in aws, allowed meaning ubuntu can use it; sudo ufw allow 80 does it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM