歡迎您光臨本站 註冊首頁

squid反向代理報400錯誤

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

squid反向代理報400錯誤

大家好,
我的系統 centos5 ,squid3.0 反向代理

squid 主機ip: 192.168.1.100

xxx.com.cn是一個公網上可以解析的域名,我為了對用戶隱藏他,使用反向代理,用戶每次使用

http://192.168.1.100/acm/ 來訪問 http://xxx.com.cn/acm/

結果每次都返回 400錯誤 :Bad Request (Invalid Hostname)

我用其他類似的域名試過了,都沒有這個問題,只有 xxx.com.cn 這一個站點出問題

我的squid.conf配置

http_port 80 accel vhost
acl acm urlpath_regex ^/acm
cache_peer xxx.com.cn parent 80 0 no-query originserver name=server1
cache_peer_access server1 allow acm
cache_peer_access server1 deny all

access.log 如下:

1378783542.904      0 192.168.1.111 TCP_NEGATIVE_HIT/400 311 GET http://192.168.1.100/acm/ - NONE/- text/html
1378783544.779      0 192.168.1.111 TCP_NEGATIVE_HIT/400 311 GET http://192.168.1.100/acm/ - NONE/- text/html

cache.log 中沒有內容。

謝謝大家的指點,盼賜教
《解決方案》

:wink::mrgreen::em17:路過學習的!
《解決方案》

多謝 loveyuqing
《解決方案》

給個思路也行啊

[火星人 ] squid反向代理報400錯誤已經有1206次圍觀

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