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
質問済み 1年前59ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ