I have started using AWS t2.micro virtual machine. I installed apache2 and curl on it. If I type curl localhost on the ubuntu machine, it gives me the correct page. How do I now connect to the ubuntu machine with http from windows and fetch the same page?
Asked
Active
Viewed 396 times
0
-
Possible duplicate of [How to configure direct http access to EC2 instance?](https://stackoverflow.com/questions/9604840/how-to-configure-direct-http-access-to-ec2-instance) – Sangam Belose Feb 22 '18 at 13:49
-
Have you opened port 80 on your EC2 instance's Security Group? – spg Feb 22 '18 at 14:28
2 Answers
1
Modify the security group of that instance(virtual machine) adding to inbound rules: port 80
, Protocol tcp
and source (IP to accept connection from) either the static IP address of the windows computer or 0.0.0.0/0
(any IP address).

abulkay
- 409
- 4
- 13
0
I have fixed the issue by doing this in AWS:
- Open EC 2 Dashboard
- Open Instances
- Click the instance I want to connect to
- Scroll down to description and look at "Security Groups"
- Look at the name of security group, mine was "launch-wizard 3"
- Scroll down to description and look at "Security Groups"
- On the sidebar, go to Network & Security > Security Groups
- Find security group name (for me it was launch-wizard3), click on it and look down below where it says inbound, click on it.
- Click edit
- add rule
- Type: HTTP, Source: anywhere
- Save
- Connect to your public ip and it should work.

sander
- 1,426
- 4
- 19
- 46