Step 1: Install Nginx
Log into your FlashRDP Linux VPS via SSH and run the following commands to update your package list and install Nginx:Step 2: Upload Your Website Files
By default, Nginx looks for website files in/var/www/html.
You can upload your index.html, CSS, and JS files there using an SFTP client (like FileZilla or Cyberduck) using the exact same IP, username (root), and password you use for SSH.
Step 3: Set Up Your Domain (Optional but Recommended)
If you have a domain name (likeyourwebsite.com), you should set up a “Server Block” so Nginx knows how to route traffic.
- Create a new folder for your domain:
- Create a new configuration file for Nginx:
- Paste the following configuration, changing
yourwebsite.comto your actual domain:Save and exit nano by pressingCtrl+X, thenY, thenEnter. - Enable the site and restart Nginx: