Skip to content

Instantly share code, notes, and snippets.

@bp2008
bp2008 / linux_cheat_sheet.md
Last active August 23, 2023 22:46
Ubuntu Linux / Raspberry Pi Cheat Sheet

Linux Cheat Sheet

nginx

nginx is typically located at /usr/bin/nginx
nginx configuration is at /etc/nginx

Start

nginx
@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active April 15, 2024 02:19
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files: