免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5786 | 回复: 4
打印 上一主题 下一主题

[Web] 使用nginx做正向代理,无法正常登录网易邮箱!!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-06-03 16:47 |只看该作者 |倒序浏览
RHEL5.3+NGINX 0.7.65+iptables做web的透明代理
发现用户不能正常登录网易邮箱,登录时出现如下图所示的问题,各位帮忙看下

nginx配置如下:
worker_processes  4;
error_log  logs/error.log  crit;
worker_rlimit_nofile 51200;
events {
    worker_connections  51200;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    server {
        listen       8080;
        server_name  localhost;

        access_log off;
        client_header_buffer_size 32k;
        large_client_header_buffers 4 128k;
        location / {
            proxy_buffering on;
            proxy_buffer_size 32k;
            proxy_buffers 8 64k;
            proxy_busy_buffers_size 128k;
            resolver 192.168.100.215;
            proxy_set_header  Host $host;
            proxy_set_header  X-Real-IP $host;
            proxy_set_header  X-Forwarded-For $host;
            proxy_pass http://$host$request_uri;
        }

        location /staus {
         stub_status on;
         access_log   off;
        }

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

    }

论坛徽章:
0
2 [报告]
发表于 2010-06-07 07:59 |只看该作者
我用的squid做的正向代理也是这个问题
费解

论坛徽章:
0
3 [报告]
发表于 2010-06-08 10:47 |只看该作者
你这个https都不支持的。


是不是有一些东西ajax的原因呢。
不太清楚。

论坛徽章:
0
4 [报告]
发表于 2010-06-09 09:38 |只看该作者
没有试过,关注一下

论坛徽章:
0
5 [报告]
发表于 2010-06-11 11:44 |只看该作者
nginx的问题应该是cookie的问题,加如下参数
proxy_set_header        cookie $http_cookie;
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP