Do not put your application under the public_html directory.
The public_html directory is accessible to the public.
Putting your application code there would be an unnecessary risk.
The underlying software and configuration (Passenger) handle the mapping of the application to a publically accessible URL for you. There is zero need to place your application within the public_html folder. Instead, choose a directory named after your application or something similar.
Also, it might be helpful to know that the Node.JS plugin that you’re making use of is created and provided by CloudLinux rather than cPanel:
3
Answers
Do not put your application under the public_html directory.
The public_html directory is accessible to the public.
Putting your application code there would be an unnecessary risk.
The underlying software and configuration (Passenger) handle the mapping of the application to a publically accessible URL for you. There is zero need to place your application within the public_html folder. Instead, choose a directory named after your application or something similar.
Also, it might be helpful to know that the Node.JS plugin that you’re making use of is created and provided by CloudLinux rather than cPanel:
https://docs.cloudlinux.com/cloudlinux_os_components/#node-js-selector
My solution change main domain to other then add again domain app to other folder
JUST don’t put slash replace this ‘public_html/’ to ‘public_html’