Skip to content

Instantly share code, notes, and snippets.

@gadoi
gadoi / gist:017b05e1ed46331cab11070569f43ac9
Last active October 14, 2022 14:13 — forked from dstf/gist:2c3310e2095da096de31e05eacaa032a
Secure your server debian / wordpress
View gist:017b05e1ed46331cab11070569f43ac9
Creating strong passwords i would recommend using a browser extensions as password generator.
-Configuring Auto-Update:
apt install unattended-upgrades
systemctl enable unattended-upgrades
systemctl status unattended-upgrades
nano /etc/apt/apt.conf.d/50unattended-upgrades
@gadoi
gadoi / nginx-wordpress.conf
Created June 13, 2022 02:49 — forked from nfsarmento/nginx-wordpress.conf
Harden wordpress security nginx
View nginx-wordpress.conf
############ WordPress ####################
# Disable logging for favicon and robots.txt
location = /favicon.ico {
try_files /favicon.ico @empty;
access_log off;
log_not_found off;
expires max;
}
@gadoi
gadoi / kali.md
Created June 29, 2021 15:36 — forked from dvdknaap/kali.md
RootTricks
View kali.md
@gadoi
gadoi / nginxproxy.md
Created January 19, 2021 02:40 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?
View nginxproxy.md

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@gadoi
gadoi / mysql_cheat_sheet.md
Created December 31, 2020 02:24 — forked from bradtraversy/mysql_cheat_sheet.md
MySQL Cheat Sheet
View mysql_cheat_sheet.md