How can I expose my EC2 NextJS website?

0

I have created EC2 with MS Windows. I have downloaded and installed NodeJS and:

npx create-next-app@latest npm run build npm start Confirmed that http://localhost:3000 works on the EC2

Set up the IPv4 TCP for port 3000

sgr-07ad45d8794867fac IPv4 Custom TCP TCP 3000 0.0.0.0/0 –

http://ec2-3-25-154-60.ap-southeast-2.compute.amazonaws.com:3000 doesn't work, This site can’t be reached

http://3.25.154.60:3000 doesn't work, This site can’t be reached

I am completely stuck

Wayne
asked 3 months ago345 views
1 Answer
0

Hello.

I think the following blogs will be helpful.
It can be published publicly using a web server such as IIS or Apache.
https://dev.to/petereysermans/hosting-a-node-js-application-on-windows-with-iis-as-reverse-proxy-397b
https://travishorn.com/reverse-proxying-node-js-apps-on-windows-with-iis-acee318b6759

profile picture
EXPERT
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions