Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Node.js support
This guide explains how to use Node.js with a managed Cloud Server.
Node.js is a free software platform in JavaScript aimed at network applications that need to be able to increase load.
Node.js is not currently available with Web hosting or Web + Mail hosting.
Installing Node.js
You can install NVM from your admin console, by following our guide: https://faq.infomaniak.com/23To install Node.js via NVM:
nvm install stable
To start the loop server (server.js contains server.listen(4040)):
npm install -g forever
forever start server.js
forever start server.js
To redirect apache traffic to the backend of Node.js, add this to your .htaccess file:
RewriteEngine On
RewriteRule ^(.*)$ http://localhost:4040/$1 [L,P]
Changing versions of Node.js
Set 6.1.0 (or another version) as default
nvm alias default 6.1.0
Link to this FAQ: