Removing Default Logs for nginx and php-fpm
Default logs are being generated, and I've heard that they can also put a load on the server when traffic is high. So, let's see how to remove them. nginx Assum
GGAMI
Default logs are being generated, and I've heard that they can also put a load on the server when traffic is high. So, let's see how to remove them. nginx Assum
Default logs are being generated, and I've heard that they can also put a load on the server when traffic is high.
So, let's see how to remove them.
log_format main_logs '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'$request_time $upstream_response_time $pipe $upstream_cache_status';
access_log /dev/stdout main_logs;Assuming it is configured like this,
access_log off;simply set it to access_log off;.
[www]
user = root
group = root
access.log = /dev/nullFor PHP, simply set access.log = /dev/null.