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
posta 4 mesi fa362 visualizzazioni
1 Risposta
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
ESPERTO
con risposta 4 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande