配置Nginx不记录本地请求

配置Nginx不记录本地请求
log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                  '$status $body_bytes_sent "$http_referer" '
                  '"$http_user_agent" "$http_x_forwarded_for" "$ssl_client_s_dn"';

map $remote_addr $log_ip {
	"~^192.168." 0;
	default 1;
    }

access_log  /var/log/nginx/access.log  main if=$log_ip;

Written with StackEdit.

Comments

Anonymous said…
Guests can also get pleasure from a Non-Smoking High Limit Slots space. You had been born ready, so hit the slots on our spacious on line casino flooring featuring over 1,600 of your favorite .01, .25, $1, and high limit slots. Take a chance on a winning spin outcome of|as a end 카지노사이트 result of} if you are having fun you’ve already gained at Red Wind Casino. Below we’ve listed some of the the} advantages of playing in} slots for actual money. Start having an incredible expertise at an online on line casino as you make protected and fast deposits. The most trusted casinos will supply a number of} popular deposit strategies, keeping your personal information safe.