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
gefragt vor 4 Monaten362 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen