Skip to content

Instantly share code, notes, and snippets.

@adyrcz
Last active August 29, 2015 14:17
Show Gist options
  • Save adyrcz/09215cd1ac0c27ce8ede to your computer and use it in GitHub Desktop.
Save adyrcz/09215cd1ac0c27ce8ede to your computer and use it in GitHub Desktop.
Nginx Logs example
http {
log_format compression '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" "$gzip_ratio"';
server {
gzip on;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment