alvaromldev Posted February 16 Share Posted February 16 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 ✌️ Quote Link to comment Share on other sites More sharing options...
alvaromldev Posted February 19 Author Share Posted February 19 Any updates? Quote Link to comment Share on other sites More sharing options...
wolstech Posted February 19 Share Posted February 19 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/ 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.