#日志中记录真实 IP 地址,替换$remote_addr 为上面的$clientRealIP. log_format main '$clientRealIP - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent $brotli_ratio "$http_referer" ' '"$http_user_agent"';