Skip to Main Content


Install the NGINX web server on your VPS (EASY!)


The most popular piece of webserver software in use is nginx, and it is very easy to install, especially with a KUBBUR vps. Whether you have server with us or not, you will be able to follow and use this tutorial to install nginx on your VPS of any kind as long as it runs on the supported hardware and operating systems!

Prerequisites: We will be using Ubuntu 20.04 LTS (Focal Fossa) for this install and running on a KUBBUR vps from As previously mentioned any supported framework for nginx will still be able to follow by this tutorial.

Now, to the install!

(1) Update Repositories using apt-get

Run the following command in your console to update any repositories and packages on your server instance:

sudo apt-get update

Note: if you want to skip using sudo and typing your password every time, run (root can skip sudo at all times without sudo -i):

sudo -i

(2) Install Nginx itself

Ubuntu 20.04 (Focal Fossa) comes included with default repositories, including nginx, so all you need to do is run:

sudo apt-get install nginx

Before you continue, make sure to verify the install by executing:

nginx -v

(3) Useful console commands for nginx

To start the nginx service:

sudo systemctl start nginx

To make nginx boot from startup automatically:

sudo systemctl enable nginx

To disable nginx booting up from startup automatically:

sudo systemctl disable nginx

To stop the nginx service:

sudo systemctl stop nginx

To reload the nginx service, for instance after changes:

sudo systemctl reload nginx

To restart the nginx service:

sudo systemctl restart nginx

(4) Configure firewalling for nginx

Go to your KUBBUR VPS panel's "FIREWALL" page and press "NEW RULE" for this modal to show up:

And fill in: Name can be anything you want (nginx port for example), Source IP is the IP that is allowed to connect to the port (you can restrict this to your own IP for example, leave blank for no restriction), Destination IP should be the IP of your Virtual Server and Protocol is set to 'UDP', Source Port to as previously noted whatever you want to restrict it to (leave blank for no restrictions) and the Destination Port to the nginx port you chose, default is 443, and Action is set to "ALLOW".

Then make another rule doing the exact same but making the Destination Port 80.

And you should be all done!

Need more help?

Speak to our support team to help you with your problem!

let's talk!

Made with ❤️ in Iceland

Copyright © 2021 - 2022 KUBBUR Limited. All rights reserved. KUBBUR is a brand of KUBBUR Limited, a duly registered company of England and Wales. Company no. 13999809. ICO no. ZB331924.

Minecraft® is a registered trademark of Mojang AB. This website is not affiliated with or endorsed by Mojang AB. Discord®, the Discord® logo and Discord Nitro® are registered trademarks of Discord, Inc. Ubuntu®, Kubuntu®, Lubuntu®, Xubuntu®, Canonical®, the Ubuntu® logo and the "Circle of Friends®" are registered trademarks of Canonical, Ltd. Intel®, and the Intel® logo are registered trademarks of Intel Corporation and its subsidiaries. AMD®, AMD Ryzen®, the AMD® and AMD® arrow logo, AMD EPYC®, and the AMD Ryzen® logo are registered trademarks of Advanced Micro Devices, Inc. Apex Hosting® is a registered trademark of Apex Hosting, LLC. MCProHosting® is a registered trademark of MCProHosting, LLC. PebbleHost® is a registered trademark of Daniel James Jackson.

All product names, brands, logos, trademarks and registered trademarks are property of their respective owners. Any use of the aforementioned on this website is for identification purposes only and does not imply endorsement.

KUBBUR Limited is a subsidiary of KVM Group Limited and Scaleblade, Ltd. of the United Kingdom.