I have a Node.JS application running on cPanel hosting. I have the application setup using ems2.example.com and I made a wildcard subdomain that shares the same directory with ems2.example.com. So it points all subdomain to my Node.js app. My goal was to show different contents from the node.js app depending on the subdomain the request is coming from.
Everything is working fine and I have got my server up and running. The only problem I face is after some time, let's say 15-20 hours the wildcard subdomains stop responding. While the main subdomain (ems2.example.com) keeps working as intended.
Below are the screenshots of relevant pages (I have replaces my domain name with example.com)




I desperately need a quick solution here. Any help will be appreciated. Thanks in advance
Everything is working fine and I have got my server up and running. The only problem I face is after some time, let's say 15-20 hours the wildcard subdomains stop responding. While the main subdomain (ems2.example.com) keeps working as intended.
Below are the screenshots of relevant pages (I have replaces my domain name with example.com)
- Picture of subdomain configuration
- resource statistics
- Node.js application listing page
- Node.js App configuration




I desperately need a quick solution here. Any help will be appreciated. Thanks in advance