A
A
account-12017-03-05 01:58:19
Amazon Web Services
account-1, 2017-03-05 01:58:19

Why is my node.js application not working on AWS?

For the AWS test, I'm trying to deploy a standard application - https://github.com/nuxt/express
In the ssh console, it says that it's running and running on port 3000. I also set a rule for port 3000 in Security on AWS. But when I enter my Amazon DNS :3000 to the browser, then the application is not available at this address from the Internet.
Why? How to fix? Everywhere all the manuals describe a simple procedure. Since the Express server works without errors on such and such a port, it should work. It does not work for me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Polin, 2017-03-05
@account-1

First, the port must be open to outside access. This can be done in the instance settings where the Security Groups are.
Secondly, the browser can block calls to a non-standard port, to bypass this, set nginx as a proxy server and configure it to listen on the 80th port and redirect to 3000.
Thirdly, you must have an Elastic IP configured and here it is and you need to contact the server.
Fourthly, I recommend buying a domain and directing it to an external ip address.
PS Putting a bare node, without a proxy above it, is somewhat wrong.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question