使用nginx做正向代理,無法正常登錄網易郵箱!!!!
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;
}
}
《解決方案》
我用的squid做的正向代理也是這個問題
費解
《解決方案》
你這個https都不支持的。
是不是有一些東西ajax的原因呢。
不太清楚。
《解決方案》
沒有試過,關注一下
《解決方案》
nginx的問題應該是cookie的問題,加如下參數
proxy_set_header cookie $http_cookie;