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
已提问 4 个月前362 查看次数
1 回答
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
专家
已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则