首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网络技术 > 网络基础 >

Nginx上400 Bad Request The plain HTTP request was sent to HTTPS port的原因

2012-08-07 
Nginx下400 Bad RequestThe plain HTTP request was sent to HTTPS port的原因?upstream payment443{?????

Nginx下400 Bad Request The plain HTTP request was sent to HTTPS port的原因

?upstream payment443{
??????? server 10.11.157.111:443 backup;
??????? server 10.11.157.222:443 weight=1;
??? }

?? Location ~? /payment/ {
???????????? ssi? on;
???????????? proxy_pass http://payment443;
???????????? include /opt/apps/nginx/conf/proxy.conf;
??????? }

因为我配置的跳转是走HTTPS协议的443端口,但nginx下Location确是配置的是HTTP协议,所以应该把HTTP改成HTTPS,例如上面得改为proxy_pass http://payment443就可以了。

热点排行