BeReady?(ja) -> ダメ方面


[NetBSD] httpd_accel_with_proxy

squid の話だから NetBSD ってカテゴライズは間違ってるのだけれど。

なんだか mrtg が刺さったようで、しかーも kill で殺せなくなってたんで NetBSD を再起動。そしたら pf 経由(?) で透過プロクシさせてる squid がエラーを返して Web が見れない風味。なんでかなー、と思いつつ

sudo /usr/pkg/etc/rc.d/squid restart

とかかますと

2006/10/07 09:12:42| parseConfigFile: line 2061 unrecognized: 'httpd_accel_host virtual'
2006/10/07 09:12:42| parseConfigFile: line 2062 unrecognized: 'httpd_accel_port 80'
2006/10/07 09:12:42| parseConfigFile: line 2092 unrecognized: 'httpd_accel_with_proxy on'
2006/10/07 09:12:42| parseConfigFile: line 2113 unrecognized: 'httpd_accel_uses_host_header on'

とか言い出してるじゃーありませんか。

こいつは困った、と man を読んでみたんだけど、それっぽい記述が見当たらない。じゃあってんで squid本家の FAQ で httpd_accel_with_proxy で検索して出てきたページを読んでみたところ SquidFaq/InterceptionProxyConfigure Squid to accept and process the redirected port 80 connections

For Squid-2.6 and Squid-3.0 you simply need to add the keyword transparent on the http_port that your proxy will receive the redirected requests on as the above directives are not necessary and in fact have been removed in those releases:
http_port 3128 transparent
For Squid-2.5 and earlier the configuration is a little more complex. Here are the important settings in squid.conf for Squid-2.5 and earlier:
http_port 3128
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy  on
httpd_accel_uses_host_header on

などとばっちり書いてあったのでした…。そーいや squid はバージョンアップしてるけど、squid.conf はここ最近全然いじってなかったや。

バージョンアップした後はちゃんとリリースノートを読もう、という教訓ということで(笑

コメント(1) [コメントを投稿する]
_ phentermine on line 2007年05月24日 23:35

 on line phentermine http://phentermine-on-line.beeplog.de

名前:
E-mail:
コメント:
本日のPingbacks(全0件)
本日のリンク元

編集