NGINX HTTP Server

Installation

sudo apt install nginx

Run the service

or

2.1.2. Configuration

  • Create the web root folder /var/www/domain-one.com/public_html

  • Create the file /etc/nginx/sites-available/domain.xxx.conf:

  • Validate the configuration file has no syntax errors:

HTTPS

Generation of Certificate from Let’s Encrypt

  • Install certbot

  • Run certbot

Configuration of NGINX server

  • Set the following content for /etc/nginx/sites-available/domain.xxx.conf:

Last updated