由于最近SL抽风严重,所以又找了个速度相对快的VPS来做缓存加速,但有个问题出现了.
在网站日志分析上了现所有来访者都是前端nginx的IP,所有留言也是那个IP.
所以问下这里的牛人们,那种做了CDN或是简单反向的站,网站来路分析正常不?
附上我的NGINX配置- server

  • {
  • listen 80;
  • server_name xx.xx www.xxxx.com;
  • - location ~ \.(jpg|jpeg|gif|bmp|png|css|js|flv|xml)$
  • {
  • # proxy_next_upstream http_502 http_504 error timeout invalid_header;
  • proxy_cache cache_one;
  • proxy_cache_valid 200 304 12h;
  • proxy_cache_valid 302 1m;
  • proxy_cache_key $host$uri$is_args$args;
  • proxy_set_header Host $host;
  • proxy_set_header X-Forwarded-For $remote_addr;
  • proxy_pass http://50.22.xx.xx;
  • }
  • location /
  • {
  • proxy_set_header Host $host;
  • proxy_set_header X-Forwarded-For $remote_addr;
  • proxy_pass http://xx.xx.xx.xx;
  • }
  • }复制代码

[ 本帖最后由 Gpuer 于 2011-4-24 13:13 编辑 ]