m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2021-04-09 11:36:13 +0200
committerMarcin Chrzanowski <m@m-chrzan.xyz>2021-04-09 11:36:13 +0200
commit0213efe43ebcf37efdabe8ae5f9cf3e338569941 (patch)
treecf35564a31a361de996555660e8e09eba26d4680
parent5067909028e51033de210fe758732d19d8cb3a28 (diff)
Add nginx file
-rw-r--r--nginx.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/nginx.md b/nginx.md
new file mode 100644
index 0000000..53e33cd
--- /dev/null
+++ b/nginx.md
@@ -0,0 +1,12 @@
+# The Nginx HTTP server
+
+## Logs
+
+Specify separate logging file for given server
+
+ access_log /var/log/nginx/blog/access.log;
+
+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