V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
buobuk
V2EX  ›  NGINX

反向代理时,前端的 in 流量比 out 高出几倍. 正常吗?

  •  
  •   buobuk · 2014-06-01 18:54:37 +08:00 · 3497 次点击
    这是一个创建于 3617 天前的主题,其中的信息可能已经有所发展或是发生改变。
    server
    {
    listen 80;
    server_name www.123.com;
    location / {
    proxy_redirect off;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://123.123.123.123:80;
    }
    access_log off;
    }
    5 条回复    2014-06-02 20:46:51 +08:00
    66CCFF
        1
    66CCFF  
       2014-06-01 18:57:47 +08:00
    gzip的原因吗?
    buobuk
        2
    buobuk  
    OP
       2014-06-01 19:15:04 +08:00
    @66CCFF 后端返回应该是GZIP过的
    pubby
        3
    pubby  
       2014-06-02 00:43:55 +08:00 via Android
    肯定吗?默认是http/1.0访问后端,木有gzip
    buobuk
        4
    buobuk  
    OP
       2014-06-02 01:45:39 +08:00 via iPhone
    @pubby 后端的gzip_http_version配置是1.0
    pubby
        5
    pubby  
       2014-06-02 20:46:51 +08:00
    那只好抓包看看,后端是否gzip输出了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2791 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:32 · PVG 13:32 · LAX 22:32 · JFK 01:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.