Skip to content

Installation with Nginx

Andrey Gagarin edited this page Sep 10, 2020 · 5 revisions

Installing Nginx

Install the Nginx webserver and the necessary modules.

sudo apt-get update

sudo apt-get install nginx

Setting Nginx

Create a file /etc/nginx/sites-available/001-site.conf with the following contents, replacing your.site.com with the DNS name of your site.

server {
listen 80;
server_name your.site.com;
}

Installing certbot

Install certbot on you server. If you have fresh version of Ubuntu or Debian:

sudo apt-get update

sudo apt-get install certbot python-certbot-nginx

Contents

Clone this wiki locally