Skip to main content
To serve a website from your VPS, you need a web server (Nginx or Apache), your app runtime (PHP/Node/etc.), and SSL for HTTPS.
1

Choose your web server

  • Nginx: lightweight and great performance
  • Apache: flexible and widely supported
2

Install the web stack

Typical setups:
  • PHP sites: Nginx/Apache + PHP-FPM + MariaDB/MySQL (if needed)
  • WordPress: web server + PHP + database + caching
3

Create a site configuration (virtual host)

Configure your domain to point to a folder on your VPS (example: /var/www/yourdomain), and set the site’s server name to your domain.
4

Upload your website files

Upload via SFTP, Git, or deployment scripts.Confirm the site loads by IP before switching DNS.
5

Install SSL (HTTPS)

Use an SSL tool (commonly Let’s Encrypt) to issue a certificate for your domain, then enable HTTPS redirects after issuance.
6

Test and harden

Confirm:
  • Correct file permissions
  • Firewall allows only required ports
  • HTTPS works and redirects are correct