LIVE NOW
DartDay - 24 Hours of Blow Out Deals!
00d : 00h : 00m : 00s
Go To the Event

Knowledge Base

Find detailed guides, step-by-step tutorials, and FAQs to help you get the most from your DartNode services.

home web-servers server-setup

How to Set Up Nginx Web Server

How to Set Up Nginx Web Server

Ubuntu / Debian

  1. Connect to your server via SSH Terminal or your local SSH client.
  2. Update packages and install Nginx:
    apt update && apt upgrade -y
    apt install nginx -y
  3. Start and enable Nginx to run on boot:
    systemctl start nginx
    systemctl enable nginx
  4. Verify Nginx is running:
    systemctl status nginx
  5. Allow HTTP and HTTPS traffic through the firewall:
    ufw allow 'Nginx Full'
    ufw enable
  6. Visit your server's IP address in a browser (e.g., http://YOUR_SERVER_IP). You should see the Nginx welcome page.
  7. Place your website files in /var/www/html/ or create a new site configuration in /etc/nginx/sites-available/.

CentOS / AlmaLinux / Rocky Linux

dnf install nginx -y
systemctl start nginx
systemctl enable nginx
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --reload