Skip to content

Instantly share code, notes, and snippets.

View corporealsoul's full-sized avatar
🎯
Focusing

Anup Kumar Mondal corporealsoul

🎯
Focusing
View GitHub Profile
@corporealsoul
corporealsoul / letsencrypt_2020.md
Created February 8, 2021 12:10 — forked from cecilemuller/letsencrypt_2020.md
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:

@corporealsoul
corporealsoul / 2019-https-localhost.md
Created February 8, 2021 12:10 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@corporealsoul
corporealsoul / firewallD.md
Created November 16, 2020 14:57
Set Up a Firewall Using FirewallD On Redhat Or CentOS —

Set Up a Firewall Using FirewallD —

Install and Enable Your Firewall to Start at Boot —

[root@192 ~]# sudo yum install firewalld

[root@192 ~]# sudo systemctl enable firewalld

[root@192 ~]# sudo reboot now