Skip to content

Instantly share code, notes, and snippets.

@bp2008
bp2008 / linux_cheat_sheet.md
Last active August 28, 2024 17:11
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 September 29, 2024 08:31
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: