How to host multiple domains in AWS lightsail Nodejs?

0

I have hosted two apps (2 domain). The primary app (3000) and domain works fine but the seondary domain is not pointing to port 3001 as configured in its vhost file. I have created seperate vhost file for both following this documentation: https://docs.bitnami.com/aws/infrastructure/nodejs/get-started/get-started/ but still secondary domain does not points to 3001. If I access the secondary app through <serverip>:3001 . I can see the app but the secondary domain does not points to 3001 instead it points to 3000.

What am I doing wrong here?

Is there any documentation available for this setup?

  • Post the vhosts files please

Ham44
asked a year ago52 views
No Answers

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