bbskuang
装完squid出现这个故障,达人过来看看不?
The following error was encountered:
Invalid Request
Some aspect of the HTTP Request is invalid. Possible problems:
Missing or unknown request method
Missing URL
Missing HTTP Identifier (HTTP/1.0)
Request is too large
Content-Length missing for POST or PUT requests
Illegal character in hostname; underscores are not allowed
Your cache administrator is root.
--------------------------------------------------------------------------------
Generated Wed, 09 Apr 2008 08:18:54 GMT by localhost.localdomain (squid/2.6.STABLE6)
bbskuang
感谢版主的回帖。我装了一个squid2.6,希望做成反向代理 ,可是却出来这个错误:
ERROR
The requested URL could not be retrieved
While trying to process the request:
GET / HTTP/1.1
Host: 192.168.0.8:3128
User-Agent: Googlebot/2.1 (+[url]http://www.googlebot.com/bot.html[/url])
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: zh-cn,zh;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: gb2312,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
The following error was encountered:
* Invalid Request
Some aspect of the HTTP Request is invalid. Possible problems:
* Missing or unknown request method
* Missing URL
* Missing HTTP Identifier (HTTP/1.0)
* Request is too large
* Content-Length missing for POST or PUT requests
* Illegal character in hostname; underscores are not allowed
Your cache administrator is root.
Generated Wed, 09 Apr 2008 09:04:17 GMT by localhost.localdomain (squid/2.6.STABLE6)
kenduest
[quote]原帖由 [i]bbskuang[/i] 于 2008-4-10 16:57 发表 [url=http://linux.chinaunix.net/bbs/redirect.php?goto=findpost&pid=6548625&ptid=990784][img]http://linux.chinaunix.net/bbs/images/common/back.gif[/img][/url]
cache_peer 192.168.0.9 parent 80 0 no-query originserver[/quote]
光這行是不夠的,那表示你還有一堆地方沒設定好。至少 squid 2.6 版本於 http_port 內要搭配傳入 transparent 參數的。
建議可以用 google 輸入找 squid 2.6 reverse proxy 會有更多資訊。
--