SA
Size: a a a
SA
SA
log_format proxy_log
'$remote_addr [$time_local] "$request" $status'
' $body_bytes_sent "$http_referer"'
' "$http_user_agent" "$http_x_forwarded_for'
' conn=$connection:$connection_requests'
' r_completion=$request_completion'
' r_length=$request_length'
' r_time=$request_time'
' u_addr=$upstream_addr'
' u_header_time=$upstream_header_time'
' u_con_time=$upstream_connect_time'
' u_resp_time=$upstream_response_time'
' u_resp_length=$upstream_response_length'
' u_bytes_rec=$upstream_bytes_received'
' u_cache_stat=$upstream_cache_status'
' u_stat=$upstream_status'
;
БГ
log_format proxy_log
'$remote_addr [$time_local] "$request" $status'
' $body_bytes_sent "$http_referer"'
' "$http_user_agent" "$http_x_forwarded_for'
' conn=$connection:$connection_requests'
' r_completion=$request_completion'
' r_length=$request_length'
' r_time=$request_time'
' u_addr=$upstream_addr'
' u_header_time=$upstream_header_time'
' u_con_time=$upstream_connect_time'
' u_resp_time=$upstream_response_time'
' u_resp_length=$upstream_response_length'
' u_bytes_rec=$upstream_bytes_received'
' u_cache_stat=$upstream_cache_status'
' u_stat=$upstream_status'
;
SA
SA
access_log /var/log/nginx/lalala.log proxy_log;
БГ
SA
БГ
log_format proxy_log
'$remote_addr [$time_local] "$request" $status'
' $body_bytes_sent "$http_referer"'
' "$http_user_agent" "$http_x_forwarded_for'
' conn=$connection:$connection_requests'
' r_completion=$request_completion'
' r_length=$request_length'
' r_time=$request_time'
' u_addr=$upstream_addr'
' u_header_time=$upstream_header_time'
' u_con_time=$upstream_connect_time'
' u_resp_time=$upstream_response_time'
' u_resp_length=$upstream_response_length'
' u_bytes_rec=$upstream_bytes_received'
' u_cache_stat=$upstream_cache_status'
' u_stat=$upstream_status'
;
SA
SA
nginx -t
а только потом рестартSA
БГ
log_format proxy_log
'$remote_addr [$time_local] "$request" $status'
' $body_bytes_sent "$http_referer"'
' "$http_user_agent" "$http_x_forwarded_for'
' conn=$connection:$connection_requests'
' r_completion=$request_completion'
' r_length=$request_length'
' r_time=$request_time'
' u_addr=$upstream_addr'
' u_header_time=$upstream_header_time'
' u_con_time=$upstream_connect_time'
' u_resp_time=$upstream_response_time'
' u_resp_length=$upstream_response_length'
' u_bytes_rec=$upstream_bytes_received'
' u_cache_stat=$upstream_cache_status'
' u_stat=$upstream_status'
;
БГ
SA
SA
I
БГ
127.0.0.1 [30/Mar/2021:16:30:44 +0300] "GET /live/live/test.m3u8 HTTP/1.1" 404 178 "-" "curl/7.58.0" "- conn=2:1 r_completion=OK r_length=92 r_time=0.000 u_addr=- u_header_time=- u_con_time=- u_resp_time=- u_resp_length=- u_bytes_rec=- u_cache_stat=- u_stat=-
SA
БГ
SA