Skip to main content
To host a website on a Linux VPS, install Nginx, put your site files in a folder under /var/www, add a server block for your domain, point the domain’s DNS A record at the server, and enable HTTPS with Certbot. The steps below use Ubuntu 22.04 or 24.04 on a FlashRDP Linux VPS.

Step 1: Install Nginx

Log in to your server via SSH and install Nginx:
Nginx starts automatically. Open http://YOUR_SERVER_IP in a browser and you should see the “Welcome to nginx!” page.
If you have enabled ufw on the server, allow web traffic first: sudo ufw allow 'Nginx Full'. Ubuntu leaves ufw off by default.

Step 2: Create a folder for your site

Upload your index.html, CSS and JavaScript files to /var/www/yourwebsite.com with an SFTP client such as FileZilla or Cyberduck. Use the same IP address and login you use for SSH; an SSH key is safer than a password.

Step 3: Add a server block for your domain

  1. Create a configuration file:
  2. Paste this, replacing yourwebsite.com with your domain:
    Save and exit nano with Ctrl+X, then Y, then Enter.
  3. Enable the site, test the configuration and reload Nginx:

Step 4: Point your domain at the server

At your domain’s DNS provider, create an A record for yourwebsite.com and www pointing to your server’s IPv4 address. DNS changes can take from a few minutes to several hours to spread.

Step 5: Enable HTTPS

Once the domain resolves to your server, get a free Let’s Encrypt certificate with Certbot. It edits your server block and sets up automatic renewal:
Your site is now live over HTTPS.
Expecting attacks on a public site? FlashRDP filters network-level (Layer 4) DDoS floods, not HTTP floods. Put a proxy service such as Cloudflare in front of the site for Layer 7 protection. See DDoS protection.
Need a server? Deploy a FlashRDP Linux VPS.

Connect via SSH

Host WooCommerce with CyberPanel

Persistent Docker Deployments

DDoS Protection

Last modified on October 16, 2026