装完squid出现这个故障,达人过来看看不?

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
希望大家指点一下。

kenduest
[quote]原帖由 [i]bbskuang[/i] 于 2008-4-10 15:34 发表 [url=http://linux.chinaunix.net/bbs/redirect.php?goto=findpost&pid=6548455&ptid=990784][img]http://linux.chinaunix.net/bbs/images/common/back.gif[/img][/url]
希望大家指点一下。 [/quote]

您的問題內容本身就實在看不出來你的問題是怎麼。

把你預期的需求與過程描述清楚再說吧 :)

--

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
發問問題請試著把資訊告訴大家:

1. 你打算要完成哪些需求?
2. 你用的 squid 版本 ?
2. 你的組態配置為何 ?

squid 做 reverse-proxy 其實之前已經有很多篇文章討論過了,建議先找一下後測試之若不行再討論。

--

bbskuang
尊敬的版主大人,小弟是這樣的:
1.我打算要完成一個反向代理功能的squid服務器,ip是192.168.0.8,内部網站服務器的地址是192.168.0.9
2.我的系統是紅帽子5.1,squid版本是2.6
3.基本上都是默認配置,只是打開了所有人能訪問以及加了一條:
cache_peer 192.168.0.9 parent 80 0 no-query originserver

但是現在出現了上文的哪些情況,小弟不知其爲何,還望各位知道的朋友指點一下。

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 會有更多資訊。

--

zhanglp888
[url]http://blog.s135.com/book/squid/index.html[/url]

看看这本书