m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/nginx.md
blob: 53e33cd805190384e384a1fb3e7e7f9978578584 (plain)
1
2
3
4
5
6
7
8
9
10
11
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