Move gateway logs to separate file
This commit is contained in:
parent
53c758a781
commit
dfa8328e7b
1 changed files with 2 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
||||||
log_format access '$remote_addr [$time_local] '
|
log_format gateway '$remote_addr [$time_local] '
|
||||||
'$protocol $status $bytes_sent $bytes_received '
|
'$protocol $status $bytes_sent $bytes_received '
|
||||||
'$session_time "$ssl_preread_server_name" '
|
'$session_time "$ssl_preread_server_name" '
|
||||||
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
|
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
|
||||||
|
|
||||||
log_format ips '$remote_addr [$time_local] $ssl_preread_server_name';
|
log_format ips '$remote_addr [$time_local] $ssl_preread_server_name';
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log access;
|
access_log /var/log/nginx/gateway.log gateway;
|
||||||
access_log /var/log/nginx/ips.log ips;
|
access_log /var/log/nginx/ips.log ips;
|
||||||
|
|
||||||
map $ssl_preread_server_name $gateway_destination {
|
map $ssl_preread_server_name $gateway_destination {
|
||||||
|
|
Loading…
Reference in a new issue