Editing: logging.conf
############################################################################### # Logging config ## log_format imhlog '$remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent" ' '[loc=$geoip2_data_country_code/$geoip2_data_city_name] ' '[rt=$request_time] [proto=$server_protocol:$http2] [args=$args] ' '[ucs=$upstream_cache_status] [xpc=$sent_http_X_Proxy_Cache] ' '[uct=$upstream_connect_time] [gz=$gzip_ratio] [br=$brotli_ratio] ' '[tls=$ssl_protocol] [cipher=$ssl_cipher] [scheme=$scheme] [eorigin=$sent_http_X_Error_Origin] ' '$server_name $http_host $hostname $connection'; access_log /var/log/nginx/access.log imhlog;
Save
Back