Skip to content

Alternate nginx configuration #5

Description

@starchy

Following up on @alanton's request to record a configuration we've used at EFF in an issue:

log_format main '[$time_local] $status "$request" $body_bytes_sent "$http_user_agent" $geoip_country_code DNT:$http_DNT';
access_log /var/log/nginx/access.log main;

With a slightly different logrotate formula:

/var/log/nginx/*.log {
daily
rotate 7
...
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions