Node.jS Setup

In Directadmin, to setup a Node.js application, please do the following:

  1. In Directadmin, go to Advanced Features -> Nginx Unit
  2. Click "Create application" to create a new Unit application
  3. Enter the name of the application in the name field
  4. Select "Node.js" as the Type
  5. Select the application's directory in directories listing - navigate to it if needed. .
  6. In the "Script" field, enter "server.js" or whatever the main js file name is -- just the file name
  7. Click the "Create" button
  8. On the applications list, find the new application
  9. Under the "3 dots" menu on the right, select "Create Route"
    1. This creates a new Route that you can view under the Routes tab
  10. Wait 5 to 10 minutes for the configuration to reload 
  11. 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.  

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to create a .htaccess file

Creating a .htaccess is easier then it sounds. You can create an .htaccess file in any text...

http Error codes

The following are http status and error codes that are returned for each file access via a web...

Frontpage Publishing via FTP

Frontpage extensions are not supported on our servers due to bugs in the extensions (some...

How to upload / create your site.

Creating your site How you create your site depends on what you want to do with it.  You...

Changing php.ini directives via .htaccess

A script you want to use requires a different setting then we have set?  No problem, you...