I searched the internet and came up withf ollowing solution
Code: Select all
access_log off;
And then I restart nginx by
Code: Select all
#killall -1 nginx
Can some one tell me how to turn off nginx access_log keeping?
Thanks in advance.
Code: Select all
access_log off;
Code: Select all
#killall -1 nginx
Code: Select all
error_log /dev/null crit;
Code: Select all
access_log off;
Code: Select all
2012/10/18 00:26:08 [error] 5540#0: *364267 upstream timed out (110: Connection timed out) while connecting to upstream, client: 189.218.91.85, server: site.com, request: "GET /heplchhz2wmh.html HTTP/1.1", upstream: "fastcgi://127.0.0.1:9011", host: "site.com", referrer: "http://www.ref.com/s/player.php?s=site&idvideo=hepl
Code: Select all
log_not_found off;
Code: Select all
# cPanel Nginx Master configuration
user nobody;
error_log logs/error.log;
#Number of worker you need
worker_processes 4;
worker_rlimit_nofile 30000;
# How many connections a worker can handle maximum.
events {
worker_connections 50000;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
server_names_hash_max_size 10000;
server_names_hash_bucket_size 1024;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 10;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain application/x-javascript text/xml text/css;
ignore_invalid_headers on;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
# include "/usr/local/nginx/conf/vhost.conf";
# include "/etc/cpnginx/cpanelproxy.conf";
include "/usr/local/nginx/conf/vidbull.conf";
include "/usr/local/nginx/conf/vhosts_extra.conf";
server {
listen 80;
location / {
proxy_pass http://localhost:8888;
proxy_set_header X-Real-IP $remote_addr;
}
}
}