How to run multiple subdomain Nodejs apps with SSL

Am sorry i you already gave me the answer. The “Not Found” issue is a NodeJS issue, I dont get how I didn’t catch that, which i got it fixed. Thank you

Scenario 1: NodeJS app running on mgxty.com and you need subdomain/child domain - customer1.mgxty.com just change port as @luckyrajpurohit said. This way you can get SSL running on both domains.

Scenario 2: NodeJS app running on mgxty.com and you need to run another NodeJS app on mgxty.com/api. Change port as @luckyrajpurohit said. This way you don’t get SSL running on both domains.

You don’t need PM2 for this but it makes it ideal to view logs of every NodeJS app and keep them alive.