You may choose to allow all or any of the profiles, however, it’s better that you allow the most restrictive profile that will still allow the traffic you’ve configured for your webserver. While Nginx auto registers with ufw, no traffic is allowed to your server until you do so yourself. Nginx HTTPS – it opens port 443 only – TLS/SSL encrypted traffic.Nginx HTTP – it opens port 80 only – unencrypted traffic.Port 443 is for TLS/SSL encrypted traffic. Port 80 is for normal/unencrypted traffic, i.e. Nginx Full – it opens both port 80 and 443.Start by entering the following command on the terminal:īelow is a screenshot the shows the output of the command above:Īs you can see, Nginx is already registered with ufw, and has three profiles as explained below: For packages from the default repository, we will be using apt.Īs a rule of thumb, you should run the update command before you start any installation on a Linux system. Ubuntu is based on Debian, which utilizes apt or dpkg to manage its packages. Ubuntu has a default package repository where we will be getting packages for use in this guide. This step takes care of the second requirement in the LEMP stack, E for Nginx. Nginx is a popular web server, appearing among the top five open source web servers preferred by developers. Web Servers enable us to serve content such as web pages to website visitors. Step 2: Installing and Configuring Nginx Server You should configure a regular non-root user with sudo privileges because we will be running a few commands that require sudo permissions. Optionally, if you want to follow this guide on your local computer, you may download the Ubuntu 20.04 server installation image directly from the Ubuntu website. You may follow our guide on setting up your Ubuntu Server. You should have an actual Ubuntu 20.04 installation on your VPS to proceed with the subsequent steps. This step takes care of the first requirement in the LEMP stack acronym, the L. The focus of this guide is on Ubuntu 20.04, which is free and open-source. There exist several Linux based server operating systems out there, including free and premium. Ubuntu 20.04 is a Linux-based Operating System. Let’s begin! Step 1: Configuring your server with Ubuntu 20.04 In this tutorial, we will guide you on how to install and configure a LEMP stack, and check that everything is running as expected. PHP is the server-side scripting language for dynamic processing. Next, MySQL is the database system that holds website and users’ data. Nginx (which is pronounced as Engine-X, hence the letter E in the acronym) is the web-server software. LEMP is an acronym for Linux, Nginx, MySQL, and PHP. It brings together four technologies that make a complete server solution for high-performance and dynamic websites. In the world of the internet, several technologies come together to form a solution that enables internet users to access dynamic content on the world wide web.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |