template-log-access.conf.in 820 Bytes
Newer Older
1
# Access log configuration
2
{% for slave, directory in slave_log_directory.iteritems() %}
3 4 5
https://[{{ parameter_dict['global_ipv6'] }}]:{{ parameter_dict['https_port'] }}/{{ slave }}, https://{{ parameter_dict['local_ipv4'] }}:{{ parameter_dict['https_port'] }}/{{ slave }} {
  bind {{ parameter_dict['local_ipv4'] }}
  root {{ directory }}/
6
  browse
7
  tls {{ parameter_dict['ip_access_certificate'] }} {{ parameter_dict['ip_access_key'] }}
8
  basicauth "{{ slave }}" {{ slave_password[slave] | trim }} {
9 10 11
    "Log Access {{ slave }}"
    /
  }
12
  log / {{ parameter_dict['access_log'] }} "{remote} - {>REMOTE_USER} [{when}] \"{method} {uri} {proto}\" {status} {size} \"{>Referer}\" \"{>User-Agent}\" {latency_ms}"
13 14
  errors {{ parameter_dict['error_log'] }} {
    * {{ parameter_dict['not_found_file'] }}
15
  }
16
}
17
{% endfor %}