Skip to content

Instantly share code, notes, and snippets.

@rafamdr
Created October 19, 2020 16:13
Show Gist options
  • Save rafamdr/abc58240e0786f8166d3dfa9b5fe8eea to your computer and use it in GitHub Desktop.
Save rafamdr/abc58240e0786f8166d3dfa9b5fe8eea to your computer and use it in GitHub Desktop.
Nginx config snippet for capturing HTTP user agent
log_format compression '$time_local - $remote_addr: "$http_user_agent"';
access_log /var/log/nginx/access.log compression;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment