亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2234 | 回復(fù): 2
打印 上一主題 下一主題

[Web] nginx 負(fù)載均衡 大家遇到過這樣的問題嗎, [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2009-04-20 11:03 |只看該作者 |倒序瀏覽
首先介紹一下我的環(huán)境
nginx 192.168.1.62 負(fù)載均衡 ssl  端口 443 和80
tomcat1 192.168.1.64 應(yīng)用 8080
tomcat2 192.168.1.66 應(yīng)用 8080
session復(fù)制已經(jīng)解決。就采用官方提供的方式。tomcat本身的
nginx配置文件

[root@Ben nginx-0.6.35]# grep -v "#" conf/nginx.conf



worker_processes 4;



error_log logs/error.log;



pid logs/nginx.pid;



worker_rlimit_nofile 51200;



events {

use epoll;

worker_connections 9812;

}





http {

include mime.types;

default_type application/octet-stream;



log_format main '$remote_addr - $remote_user [$time_local] $request '

'"$status" $body_bytes_sent "$http_referer" '

'"$http_user_agent" "$http_x_forwarded_for"';



access_log logs/access.log main;





keepalive_timeout 65;



upstream ben

{

ip_hash;

server 192.168.1.64:8080 ;

server 192.168.1.66:8080 ;

}

server {

listen 443;

listen 80;

server_name ec.ben.com;



ssl on;

ssl_certificate /usr/local/nginx-0.6.35/key/server07.cer;

ssl_certificate_key /usr/local/nginx-0.6.35/key/server07.pem;

ssl_session_timeout 5m;

ssl_protocols SSLv2 SSLv3 TLSv1;

ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;

ssl_prefer_server_ciphers on;



access_log logs/host.access.log main;



location / {

root html;

index index.jsp index.html index.htm;

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://ben;

}

}

}

現(xiàn)在跑應(yīng)用的時候出現(xiàn)一個奇怪的現(xiàn)象
每次提交表單查詢就會出現(xiàn)這樣的現(xiàn)象。少個問號
https://192.168.1.62/wecs/poMemb ... entMoney=1005337600
正常的應(yīng)該是下面這樣
https://192.168.1.62/wecs/poMemb ... entMoney=1005337600
如果直接單獨訪問tomcat1和tomcat2都是正常的。就是通過nginx的負(fù)載均衡方式訪問就會出現(xiàn)這樣的現(xiàn)象

論壇徽章:
0
2 [報告]
發(fā)表于 2009-04-20 13:07 |只看該作者
問題已經(jīng)解決了,希望對大家能有幫助
error_page 497 "https://$host$uri?$args";
我的配置uri后面少了個“問號”

論壇徽章:
0
3 [報告]
發(fā)表于 2009-04-20 17:30 |只看該作者
完美的解決方法是
error_page 497 "https://$host$uri$is_args$args";
$is_args 這主要是判斷args是否帶問號。呵呵
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP