File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change
1
+ log_format proxy '[$time_local] $upstream_cache_status $upstream_status $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] [Sent-to $server] "$http_user_agent" "$http_referer"';
2
+ log_format standard '[$time_local] $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] "$http_user_agent" "$http_referer"';
3
+
4
+ access_log /data/logs/fallback_access.log proxy;
Original file line number Diff line number Diff line change @@ -43,10 +43,8 @@ http {
43
43
proxy_cache_path /var/lib/nginx/cache/public levels=1:2 keys_zone=public-cache:30m max_size=192m;
44
44
proxy_cache_path /var/lib/nginx/cache/private levels=1:2 keys_zone=private-cache:5m max_size=1024m;
45
45
46
- log_format proxy '[$time_local ] $upstream_cache_status $upstream_status $status - $request_method $scheme $host "$request_uri " [Client $remote_addr ] [Length $body_bytes_sent ] [Gzip $gzip_ratio ] [Sent-to $server ] "$http_user_agent " "$http_referer "' ;
47
- log_format standard '[$time_local ] $status - $request_method $scheme $host "$request_uri " [Client $remote_addr ] [Length $body_bytes_sent ] [Gzip $gzip_ratio ] "$http_user_agent " "$http_referer "' ;
48
-
49
- access_log /data/logs/fallback_access.log proxy;
46
+ # Log format and fallback log file
47
+ include /etc/nginx/conf.d/include/log.conf;
50
48
51
49
# Dynamically generated resolvers file
52
50
include /etc/nginx/conf.d/include/resolvers.conf;
You can’t perform that action at this time.
0 commit comments