m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/nginx.md
diff options
context:
space:
mode:
Diffstat (limited to 'nginx.md')
-rw-r--r--nginx.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/nginx.md b/nginx.md
index 53e33cd..5f31206 100644
--- a/nginx.md
+++ b/nginx.md
@@ -1,5 +1,9 @@
# The Nginx HTTP server
+## Check config syntax
+
+ nginx -t
+
## Logs
Specify separate logging file for given server
@@ -10,3 +14,11 @@ To set up rotating/compressed logs, use `logrotate`. Config in
`/etc/logrotate.d/nginx`. Run the following to reload config:
logrotate -v -f /etc/logrotate.d/nginx
+
+## Enable website
+
+ ln -s /etc/nginx/sites-available/<config> /etc/nginx/sites-enabled/
+
+## SSL Certificate
+
+ certbot --nginx