In Directadmin, to setup a Node.js application, please do the following:
- In Directadmin, go to Advanced Features -> Nginx Unit
- Click "Create application" to create a new Unit application
- Enter the name of the application in the name field
- Select "Node.js" as the Type
- Select the application's directory in directories listing - navigate to it if needed. .
- In the "Script" field, enter "server.js" or whatever the main js file name is -- just the file name
- Click the "Create" button
- On the applications list, find the new application
- Under the "3 dots" menu on the right, select "Create Route"
- This creates a new Route that you can view under the Routes tab
- Wait 5 to 10 minutes for the configuration to reload
- The Node.js app should be running now.
NOTE: At time of writing, the Directadmin servers only supported one version of Node for the entire server. If you require a specific version, please contact support to confirm the version available.
