From abed550112b67e8448d431d83fe38620194fdc26 Mon Sep 17 00:00:00 2001 From: Julien Le Coupanec Date: Sun, 21 Jun 2020 17:21:53 +0200 Subject: [PATCH] docs(nginx): initialize cheatsheet --- README.md | 1 + tools/nginx.sh | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 tools/nginx.sh diff --git a/README.md b/README.md index 188cfc4..8b116f2 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,7 @@ Feel free to take a look. You might learn new things. They have been designed to - [Kubernetes](tools/kubernetes.sh) - [Nanobox Boxfile](tools/nanobox_boxfile.yml) - [Nanobox CLI](tools/nanobox_cli.sh) +- [Nginx](tools/nginx.sh) ## 🙌🏼 How to Contribute? diff --git a/tools/nginx.sh b/tools/nginx.sh new file mode 100644 index 0000000..4388f71 --- /dev/null +++ b/tools/nginx.sh @@ -0,0 +1,8 @@ +############################################################################## +# NGINX +# DOCUMENTATION: https://nginx.org/en/docs/ +############################################################################## + +sudo nginx -t # Check syntax +sudo systemctl reload nginx # Reload nginx +sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/ # Link website