What are the output directory permissions of access_log in nginx related to?
This article mainly explains "what is the output directory permission of access_log in nginx related to". The explanation in this article is simple and clear, easy to learn and understand. Please follow the idea of Xiaobian and go deep into it slowly to study and learn "what is the output directory permission of access_log in nginx related to"!
nginx.confhttp { log_format main escape=json '{' '"timestamp": "$time_iso8601",' '"http_x_real_ip": "$http_x_real_ip",' '"http_x_forwarded_for": "$http_x_forwarded_for",' '"remote_addr": "$remote_addr",' '"remote_user": "$remote_user",' '"domain": "$host",' '"server_addr": "$server_addr",' '"http_referer": "$http_referer",' '"request_method": "$request_method",' '"request_uri": "$request_uri",' '"request_body": "$request_body",' '"http_version": "$server_protocol",' '"request_time": $request_time,' '"upstream_response_time": "$upstream_response_time",' '"status": $status,' '"body_bytes_sent": $body_bytes_sent,' '"http_user_agent": "$http_user_agent", '}'; access_log logs/access.log main; error_log logs/error.log;}server log saved by day server { if ($time_iso8601 ~ '(\d{4}-\d{2}-\d{2})') { set $dt $1; } access_log /tmp/$dt.access.log main;}
Description: Access_log output directory permissions are related to the current server
Thank you for reading, the above is "nginx access_log output directory permissions related to what" content, after the study of this article, I believe that everyone on nginx access_log output directory permissions related to what this problem has a deeper understanding, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!