From 0213efe43ebcf37efdabe8ae5f9cf3e338569941 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Fri, 9 Apr 2021 11:36:13 +0200 Subject: Add nginx file --- nginx.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 nginx.md 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 -- cgit v1.2.3