Jump to content

[Solved] Change subdomain document root


alvaromldev

Recommended Posts

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 ✌️

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...