A
A
alexh78542020-01-14 17:29:04
Nginx
alexh7854, 2020-01-14 17:29:04

How to install website on ubuntu server on amazon ec2?

Hello.
There is an ubuntu server on amazon ec2, but the public ip does not work, it just takes a long time to load and does not open.
Installed nginx, in theory it should work.
Security Groups are configured like this - i.imgur.com/rHcYeFW.png
What could be the problem? Why is public ip not working?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
alexh7854, 2020-01-14
@alexh7854

figured out
opened port 80 for the http protocol in all security groups.

I
Ivan Shumov, 2020-01-14
@inoise

Yes, for any reason it may not work - there is no Internet Gateway, messed up in the Routing Table, NACL is overkill or, corny, "should" does not mean that it works because you install nginx and configure / run - different things

E
Eugene, 2020-01-14
@yellowmew

I’ll point my finger at the sky:
when you launched (by hand) the instance, you just clicked all next next next and by default the launch-wizard- ...... rule was added to which there is a rule for ssh (and it works, otherwise how would you put nginx)
sg you show is the default security group. Just because it's default doesn't mean it's associated with your instance. add this sg to your instance. This is
two times: the fact that you have opened a port in the security group does not mean that it is open on the server itself. check the rules of the internal firewall
And in general, first validate that curl from localhost on the instance itself gives you the content of your site on the port that you expect - maybe the application does not work there at all and you are waiting for something

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question