jollypiraterum
jollypiraterum

Reputation: 65

EC2 instance not working after stop and start

I am new to AWS and learning through hands on labs. As per the instructions in the lab, I launched an EC2 instance, installed apache and displayed a simple index.html file when the instance IP was accessed. This worked great and when I was done for the day I stopped the instance. Now when I select the instance, go to Actions > Instance State > Start it shows me that the instance is running but when I enter the IP address in the browser I get an error message that says:

This page isn’t working

[IP ADDRESS] didn’t send any data.

ERR_EMPTY_RESPONSE

Why is this happening when I have not changed anything else in the instance? How can I get it to work and show the index.html file again? I see no errors in the AWS console. I tried creating a new instance, which worked, stopped it and started again and faced the same problem.

Upvotes: 2

Views: 5655

Answers (1)

Marcin
Marcin

Reputation: 238797

Based on the comments.

The issue was that apache was not starting automatically after instance re-start.

The solution was to enable the automate start of the web server.

Upvotes: 1

Related Questions