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
- 1Get a Hostinger KVM VPS (KVM 1 or KVM 2 with Ubuntu 22.04/24.04).
- 2SSH into your server and install Node.js via NodeSource (
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -). - 3Clone your repo, run
npm install, and start it withpm2 start server.js. - 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.
1. Set Up Your Hostinger VPS
- Log in to your Hostinger account and navigate to the VPS section.
- Select your server location (choose the data center nearest your primary users for lowest latency).
- Select Plain OS and choose Ubuntu 22.04 64bit or Ubuntu 24.04 64bit.
- Set a secure root password and optionally upload your public SSH key. Once completed, your VPS will be running with a dedicated IPv4 address.


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.