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

Chinaunix

標(biāo)題: nginx 負(fù)載均衡 大家遇到過(guò)這樣的問(wèn)題嗎, [打印本頁(yè)]

作者: molecar    時(shí)間: 2009-04-20 11:03
標(biāo)題: nginx 負(fù)載均衡 大家遇到過(guò)這樣的問(wèn)題嗎,
首先介紹一下我的環(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)用的時(shí)候出現(xiàn)一個(gè)奇怪的現(xiàn)象
每次提交表單查詢(xún)就會(huì)出現(xiàn)這樣的現(xiàn)象。少個(gè)問(wèn)號(hào)
https://192.168.1.62/wecs/poMemb ... entMoney=1005337600
正常的應(yīng)該是下面這樣
https://192.168.1.62/wecs/poMemb ... entMoney=1005337600
如果直接單獨(dú)訪(fǎng)問(wèn)tomcat1和tomcat2都是正常的。就是通過(guò)nginx的負(fù)載均衡方式訪(fǎng)問(wèn)就會(huì)出現(xiàn)這樣的現(xiàn)象
作者: molecar    時(shí)間: 2009-04-20 13:07
問(wèn)題已經(jīng)解決了,希望對(duì)大家能有幫助
error_page 497 "https://$host$uri?$args";
我的配置uri后面少了個(gè)“問(wèn)號(hào)”
作者: molecar    時(shí)間: 2009-04-20 17:30
完美的解決方法是
error_page 497 "https://$host$uri$is_args$args";
$is_args 這主要是判斷args是否帶問(wèn)號(hào)。呵呵




歡迎光臨 Chinaunix (http://72891.cn/) Powered by Discuz! X3.2