node2:/etc/nginx#cat /etc/nginx/nginx.conf
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
events {
worker_connections 1024;
}
# http conf
http {
#include http/common.conf;
#include http/cache.conf;
#include http/resty.conf;
#include http/mime.types;
log_format main '[--$remote_addr--] - $remote_user [$time_local] "$request" [$status, $request_time, $upstream_response_time ] $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';
log_format rootlog '[--$remote_addr--] - $remote_user [$time_local] "$request" [$status, $request_time, $upstream_response_time ] $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';