R
R
Ricknom2018-06-13 16:44:31
Amazon Web Services
Ricknom, 2018-06-13 16:44:31

The site on EC2 is unavailable by ip, what should I do?

Launched instance on EC2, connected via ssh, launched nginx, entered public ip into the browser line, says it can't connect. What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2018-06-13
@Ricknom

If these are all the steps that you have taken, then you forgot to open access on port 80 to your instance.
By default, only ssh\rdp access is allowed - you configured this rule when you started the instance manually. Most likely they clicked and did not notice, although it is
suggested not to open it on 0.0.0.0/0.
Open the list of instances, select its security group below in the properties
Open it, select inbound
Add an access rule for port 80 (there is a "http" template) and the required range of IP addresses in CIDR format - it is possible to select "my ip" and access will be limited only for your output IP address from your ISP.
In theory, it would be best to edit the rule for the 22nd port and select my ip there.
The above is not the only point to check.
Other options:
local firewall on the machine
AWS Network ACL
inaccessibility of the IP address from your country (in Russia, the RKN has not unblocked everything yet)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question