Jump to content

Recommended Posts

Posted

Hi, I have a domain (devhabbo.com) with a new subdomain recently created (api.devhabbo.com). I would like to have a nodejs app on the subdomain but I can't change the document root of the subdomain to something like /api.devhabbo.com/www. It says "Cannot change document root: permission denied."

How can I change the subdomain document root to /api.devhabbo.com/www to store the nodejs files in /api.devhabbo.com but outside the document root folder?

Thank you, I hope I expressed myself well ✌️

Posted

Apologies for the delays on this one. We have to change that on our side, there is no way for a user to change their document roots themselves.

That domain has been updated to use /api.devhabbo.com/www as the docroot.

Also, since you mention nodejs, be aware that long-running nodejs applications are a leading cause of load suspensions. If you can, use passenger so the application starts as needed. Once you start your application, monitor your load here to avoid a suspension: https://heliohost.org/load/ 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...