Cpanel Node.JS wildcard subdomain not working after some time, only main domain working

Operating System & Version
linux x86_64 3.10.0-957.1.3.el7.x86_64
cPanel & WHM Version
100.0 (build 9)

imtiazschowdhury

Registered
Mar 25, 2022
1
0
1
Dhaka, Bangladesh
cPanel Access Level
Website Owner
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)

  • Picture of subdomain configuration
  • resource statistics
  • Node.js application listing page
  • Node.js App configuration
G8t8e.png
YaBWT.png
OABCw.png
3IAja.png

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