Hostwizly
Find Hosting

How To Host Node.js App On Hostinger (2026 Guide)

Last Updated 13 September 2026 by Jarvis Silva

Node.js is the engine powering modern server-side JavaScript, real-time WebSockets, and scalable REST APIs. Because Node.js requires a persistent daemon and root terminal control, hosting it requires a high-speed Virtual Private Server (VPS).

In this complete 2026 production guide, we walk through deploying your Node.js app on a Hostinger KVM VPS using modern Ubuntu, Node 20/22 LTS, PM2 process management, and an Nginx reverse proxy with free SSL certificates.

⚡ Quick Deployment Summary: Node.js on Hostinger VPS

  1. 1Get a Hostinger KVM VPS (KVM 1 or KVM 2 with Ubuntu 22.04/24.04).
  2. 2SSH into your server and install Node.js via NodeSource (curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -).
  3. 3Clone your repo, run npm install, and start it with pm2 start server.js.
  4. 4Configure Nginx reverse proxy on port 80/443 to route traffic to port 3000.

Hostinger KVM VPS: Up to 60% OFF + NVMe Storage

Deploy high-performance KVM 2 with 2 vCPUs, 8 GB RAM, 100 GB NVMe disk space, dedicated IPv4, and 1-click OS templates from just $5.49/month.

Get Now

1. Set Up Your Hostinger VPS

  1. Log in to your Hostinger account and navigate to the VPS section.
  2. Select your server location (choose the data center nearest your primary users for lowest latency).
  3. Select Plain OS and choose Ubuntu 22.04 64bit or Ubuntu 24.04 64bit.
  4. Hostinger VPS Ubuntu OS selection interface
  5. Set a secure root password and optionally upload your public SSH key. Once completed, your VPS will be running with a dedicated IPv4 address.
  6. Hostinger VPS dashboard details

2. Connect via SSH and Install Node.js & Git

Connect to your VPS using terminal (Mac/Linux) or PuTTY (Windows):

# Connect using your dedicated server IP

ssh root@YOUR_SERVER_IP

Update system packages and install Git:

sudo apt update && sudo apt upgrade -y

sudo apt install -y git curl build-essential

Install Node.js 20 LTS from NodeSource:

curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -

sudo apt install -y nodejs

Verify the installation:

node -v # Output: v20.x.x

npm -v # Output: 10.x.x

3. Clone Your Application and Install PM2

Clone your repository into an isolated directory:

mkdir -p /var/www/my-node-app

cd /var/www/my-node-app

git clone YOUR_GIT_REPO_URL .

npm install --production

To keep your Node.js application running indefinitely and recover from crashes, install PM2 globally:

npm install -g pm2

pm2 start server.js --name "node-app"

# Enable auto-start on server reboot

pm2 startup systemd

pm2 save

4. Configure Nginx Reverse Proxy & Free SSL

Rather than exposing raw port 3000 to the public internet, use Nginx as a high-performance reverse proxy on ports 80 and 443:

sudo apt install -y nginx

Create a new Nginx server configuration at /etc/nginx/sites-available/yourdomain.com:

server {

  listen 80;

  server_name yourdomain.com www.yourdomain.com;

  location / {

    proxy_pass http://localhost:3000;

    proxy_http_version 1.1;

    proxy_set_header Upgrade $http_upgrade;

    proxy_set_header Connection 'upgrade';

    proxy_set_header Host $host;

    proxy_cache_bypass $http_upgrade;

  }

}

Enable the site and reload Nginx:

sudo ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/

sudo nginx -t && sudo systemctl reload nginx

Finally, install Certbot for free automatic SSL:

sudo apt install -y certbot python3-certbot-nginx

sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com

Frequently Asked Questions

Can I host a Node.js app on Hostinger shared hosting?

No. Node.js applications require a persistent background process runtime, root terminal access, and open ports, which are not supported on standard shared hosting. You need a Hostinger VPS plan (starting at $5.49/mo).

What is the best Hostinger VPS plan for Node.js?

Hostinger KVM 2 (2 vCPU cores, 8 GB RAM, 100 GB NVMe storage) is the recommended sweet spot for hosting production Node.js backends, Express APIs, and PostgreSQL/MongoDB databases.

How do I keep my Node.js app running after closing the terminal?

Use PM2 (Process Manager 2). Install it using 'npm install -g pm2', start your application with 'pm2 start server.js', and run 'pm2 startup' followed by 'pm2 save'. PM2 will automatically restart your app if it crashes or the server reboots.

Can I host multiple Node.js apps on a single Hostinger VPS?

Yes! With Nginx reverse proxy and PM2, you can run multiple Node.js applications on different internal ports (e.g. 3000, 3001, 5000) and map different domain names or subdomains to each app.

Read related developer guides:

About the author

I am Jarvis Silva, a tech enthusiast. I have 5 years of experience in website hosting and development, Now sharing all my knowledge related to web hosting and other various tech on the internet through Hostwizly.

Related Articles

How To Point Hostinger Domain To AWS EC2

How To Connect Hostinger Domain To Vercel

How To Check MySQL Version In Hostinger

Host Django Website On Hostinger VPS

How To Add SPF Record In Hostinger

How To Increase WP Memory Limit In Hostinger

How To Download Files From Hostinger File Manager

How To Find FTP Password In Hostinger

How To Add Signature In Hostinger Webmail (2026 Guide)

How To Connect Namecheap Domain To Hostinger

How To Add DKIM Record In Hostinger Email

How To Add DMARC Record In Hostinger

How To Transfer Domain From Wix To Hostinger

How To Switch From Hostinger Website Builder To Wordpress

How To Find IP Address In Hostinger (2026 Guide)

How To Purchase Domain And Hosting From Hostinger

How To Install Wordpress In Hostinger

How To Extract Zip File In Hostinger (2026 Guide)

How To Install Wordpress Theme In Hostinger

How To Backup Emails From Hostinger

How To Connect Hostinger Domain To Shopify

How To Setup Hostinger Email On Outlook (2026 Guide)

How To Setup Hostinger Email On Gmail (2026 Guide)

How To Add TXT Record In Hostinger

How To Add CNAME Record In Hostinger

How To Set A Cron Job In Hostinger

How To Install Wordpress On Subdomain In Hostinger

Deploy Angular App On Hostinger Shared Hosting

How To Change PHP Version In Hostinger

How To Install Moodle On Hostinger

Can You Get Free Hosting On Hostinger? (2026 Truth)

Difference Between Hostinger.com And Hostinger.in

Host Laravel Project On Hostinger Shared Hosting

Host React App On Hostinger Shared Hosting

Is Hostinger Good For Buying A Domain Name? (2026 Review)

How to add hostinger domain to netlify

How To Transfer Domain From Hostinger To Godaddy

How To Uninstall WordPress In Hostinger (2026 Guide)

How To Connect Godaddy Domain To Hostinger

How To Host PHP Website On Hostinger (2026 Guide)

How To Change Server Location In Hostinger (2026 Guide)

How To Host Next.js On Hostinger (Static & SSR 2026 Guide)

How To Create Subdomain In Hostinger (2026 Guide)