Then in child domain i add another expressjs app @ /public_html/api/v1 and also add another @ /public_html/api/v2 (all these apps cannot run SSL - www.api.example.net:3002 and www.api.example.net:3003)
Note: Only one app can run on port 3000 and automatically proxy to port 80 via context
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.