免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2793 | 回复: 6
打印 上一主题 下一主题

[proxy] squid疑问 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-07 17:10 |只看该作者 |倒序浏览
squid疑问
我用squid做反向代理后
使用正常,但是一旦URL为:xxx?d=2,只要在URL中带有?号,访问时就会出现
ERROR
The requested URL could not be retrieved
不知道应该要怎么配置才不会这样

论坛徽章:
0
2 [报告]
发表于 2008-05-07 18:26 |只看该作者
然道没人知道么,急在线等

论坛徽章:
0
3 [报告]
发表于 2008-05-08 09:31 |只看该作者
原帖由 joyseed 于 2008-5-7 18:26 发表
然道没人知道么,急在线等


不知道你的配置是怎样的.

论坛徽章:
0
4 [报告]
发表于 2008-05-09 01:14 |只看该作者
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80                # http
acl Safe_ports port 21                # ftp
acl Safe_ports port 443                # https
acl Safe_ports port 70                # gopher
acl Safe_ports port 210                # wais
acl Safe_ports port 1025-65535        # unregistered ports
acl Safe_ports port 280                # http-mgmt
acl Safe_ports port 488                # gss-http
acl Safe_ports port 591                # filemaker
acl Safe_ports port 777                # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow all
icp_access allow all
http_port 3128
http_port 80 transparent
cache_peer x.x.x.x parent 80 80 no-query originserver
hierarchy_stoplist cgi-bin ?
cache_mem 32 MB
cache_dir ufs /var/spool/squid 3000 16 256
strip_query_terms off
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
refresh_pattern ^ftp:                1440        20%        10080
refresh_pattern ^gopher:        1440        0%        1440
refresh_pattern .                0        20%        4320
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

论坛徽章:
0
5 [报告]
发表于 2008-05-09 11:41 |只看该作者
关注一下。我的squid升级后也出现了怪问题,cache.log里全是一下信息:
clientReadRequest: FD 103 (10.0.0.28:2873) Invalid Request
2008/05/09 11:34:51| parseHttpRequest: Requestheader contains NULL characters
2008/05/09 11:34:51| parseHttpRequest: Unsupported method '堵9j3'
2008/05/09 11:34:51| clientReadRequest: FD 103 (10.0.0.28:2875) Invalid Request
2008/05/09 11:34:51| parseHttpRequest: Requestheader contains NULL characters
2008/05/09 11:34:51| parseHttpRequest: Unsupported method '堵9j3'
2008/05/09 11:34:51| clientReadRequest: FD 103 (10.0.0.28:2877) Invalid Request
2008/05/09 11:34:51| parseHttpRequest: Requestheader contains NULL characters
2008/05/09 11:34:51| parseHttpRequest: Unsupported method '堵9j3'
2008/05/09 11:34:51| clientReadRequest: FD 103 (10.0.0.28:2879) Invalid Request
clientReadRequest: FD 29 (10.0.0.25:2729) Invalid Request
2008/05/09 11:38:35| parseHttpRequest: Requestheader contains NULL characters
2008/05/09 11:38:35| parseHttpRequest: Unsupported method '堵9j3'
2008/05/09 11:38:35| clientReadRequest: FD 29 (10.0.0.25:2730) Invalid Request
2008/05/09 11:38:51| parseHttpRequest: Requestheader contains NULL characters
2008/05/09 11:38:51| parseHttpRequest: Unsupported method '='
2008/05/09 11:38:51| clientReadRequest: FD 74 (10.0.0.22:2076) Invalid Request
2008/05/09 11:39:24| parseHttpRequest: Requestheader contains NULL characters
2008/05/09 11:39:24| parseHttpRequest: Unsupported method '='
2008/05/09 11:39:24| clientReadRequest: FD 66 (10.0.0.22:2077) Invalid Request

论坛徽章:
0
6 [报告]
发表于 2008-05-09 13:36 |只看该作者
并且这个问题很奇怪,在我测试的时候都正常,但是一旦公布出去,浏览量大了以后就会出现上面的?问题

论坛徽章:
0
7 [报告]
发表于 2008-05-09 17:20 |只看该作者
原帖由 joyseed 于 2008-5-9 13:36 发表
并且这个问题很奇怪,在我测试的时候都正常,但是一旦公布出去,浏览量大了以后就会出现上面的?问题


你的反向代理真是漏洞百出...请参考下我blog里的方法.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP