我已經配置的Apache2,我試圖通過日誌閱讀(piwik)的Apache2 + piwik +清漆 - 登錄背後清漆畸形
然而piwik抱怨日誌是「畸形」 ......其正確添加統計:
89.79.******, 89.79.****** - - [31/Mar/2014:12:50:05 +0200] "GET/HTTP/1.1" 200 16310 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36"
,你可以看到它記錄相同的IP兩倍的主機...
清漆.vcl我有:
remove req.http.X-Forwarded-For;
set req.http.X-Forwarded-For = client.ip;
和Apache2的虛擬主機:
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" varnishcombined
CustomLog ${APACHE_LOG_DIR}/e***o-access.log varnishcombined
但它仍然會記錄IP兩次......
我能做些什麼來防止呢?