NGINX配置獲取CloudFlare 下的訪客真實IP並記錄到日誌

我用的是lnmp.org的環境php /usr/local/nginx/conf/nginx.conf 在html http { } 部分增長nginx map $HTTP_CF_CONNECTING_IP $clientRealIp { "" $remote_addr; ~^(?P<firstAddr>[0-9.]+),?.*$ $firstAddr; }
相關文章
相關標籤/搜索