Nginx registers itself as a service with ufw upon installation, making it straightforward to allow Nginx access. Step 2 – Adjusting the Firewallīefore testing Nginx, the firewall software needs to be adjusted to allow access to the service. Afterwards, we can install nginx:Īfter accepting the procedure, apt will install Nginx and any required dependencies to your server. Since this is our first interaction with the apt packaging system in this session, we will update our local package index so that we have access to the most recent package listings. Step 1 – Installing Nginxīecause Nginx is available in Ubuntu’s default repositories, it is possible to install it from these repositories using the apt packaging system. When you have an account available, log in as your non-root user to begin. To learn more about setting up a domain name with DigitalOcean, please refer to our Introduction to DigitalOcean DNS. You will also optionally want to have registered a domain name before completing the last steps of this tutorial. You can learn how to configure a regular user account by following our Initial server setup guide for Ubuntu 20.04. Prerequisitesīefore you begin this guide, you should have a regular, non-root user with sudo privileges configured on your server. In this guide, we’ll discuss how to install Nginx on your Ubuntu 20.04 server, adjust the firewall, manage the Nginx process, and set up server blocks for hosting more than one domain from a single server. It is a lightweight choice that can be used as either a web server or reverse proxy. Nginx is one of the most popular web servers in the world and is responsible for hosting some of the largest and highest-traffic sites on the internet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |