歡迎您光臨本站 註冊首頁

Squid代理HTTPS問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

Squid代理HTTPS問題

Hi~All,

我又來了~~使用Squid反向代理HTTPS遇到了問題,我在squid中配置了http和https,並添加了證書,部分配置代碼如下http_port 80 transparent
https_port 443 accel defaultsite=10.2.30.231 cert=/usr/local/squid/etc/ssl/10.2.30.232.crt key=/usr/local/squid/etc/ssl/10.2.30.232.key cafile=/usr/local/squid/etc/ssl/10.2.30.232.crt vhost vport  protocol=https
cache_peer xlzx.nau.edu.cn parent 80 0 no-query originserver name=xlzx
cache_peer english.nau.edu.cn parent 80 0 no-query originserver name=english
cache_peer www.neusoft.edu.cn parent 80 0 no-query originserver name=neusoft
cache_peer jxjy.neusoft.edu.cn parent 80 0 no-query originserver name=jxjy
cache_peer www.summer.com parent 443 0 no-query originserver name=summer
cache_peer_domain summer www.summer.com
cache_peer_domain neusoft www.neusoft.edu.cn
cache_peer_domain jxjy jxjy.neusoft.edu.cn
cache_peer_domain english english.nau.edu.cn
cache_peer_domain xlzx xlzx.nau.edu.cn
acl sites dstdomain *
http_access allow sites
http_access deny all但是我在瀏覽器中訪問的時候,瀏覽器卻提示Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.


Hint: https://www.summer.com/求各位牛人給指點一下問題所在~~老身頂禮感謝~~~~

必要的時候一同陪去小黑屋樂呵樂呵~~~


謝謝大家~~
《解決方案》

acl SSL_ports port 443
acl Safe_ports port 443  
把這兩行加上看看

[火星人 ] Squid代理HTTPS問題已經有752次圍觀

http://coctec.com/docs/service/show-post-11591.html