0

私はubuntu11.10マシンを持っています。Squid3をインストールしました。http_access permit allとしてsquidを構成すると、すべてが正常に機能します。私の現在の構成のほとんどは次のとおりです。

2012/09/10 13:19:57| Processing Configuration File: /etc/squid3/squid.conf (depth 0)
2012/09/10 13:19:57| Processing: acl manager proto cache_object
2012/09/10 13:19:57| Processing: acl localhost src 127.0.0.1/32 ::1
2012/09/10 13:19:57| Processing: acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
2012/09/10 13:19:57| Processing: acl SSL_ports port 443
2012/09/10 13:19:57| Processing: acl Safe_ports port 80     # http
2012/09/10 13:19:57| Processing: acl Safe_ports port 21     # ftp
2012/09/10 13:19:57| Processing: acl Safe_ports port 443        # https
2012/09/10 13:19:57| Processing: acl Safe_ports port 70     # gopher
2012/09/10 13:19:57| Processing: acl Safe_ports port 210        # wais
2012/09/10 13:19:57| Processing: acl Safe_ports port 1025-65535 # unregistered ports
2012/09/10 13:19:57| Processing: acl Safe_ports port 280        # http-mgmt
2012/09/10 13:19:57| Processing: acl Safe_ports port 488        # gss-http
2012/09/10 13:19:57| Processing: acl Safe_ports port 591        # filemaker
2012/09/10 13:19:57| Processing: acl Safe_ports port 777        # multiling http
2012/09/10 13:19:57| Processing: acl CONNECT method CONNECT
2012/09/10 13:19:57| Processing: http_access allow manager localhost
2012/09/10 13:19:57| Processing: http_access deny manager
2012/09/10 13:19:57| Processing: http_access deny !Safe_ports
2012/09/10 13:19:57| Processing: http_access deny CONNECT !SSL_ports
2012/09/10 13:19:57| Processing: http_access allow localhost
2012/09/10 13:19:57| Processing: http_access deny all
2012/09/10 13:19:57| Processing: http_port 3128
2012/09/10 13:19:57| Processing: coredump_dir /var/spool/squid3
2012/09/10 13:19:57| Processing: refresh_pattern ^ftp:      1440    20% 10080
2012/09/10 13:19:57| Processing: refresh_pattern ^gopher:   1440    0%  1440
2012/09/10 13:19:57| Processing: refresh_pattern -i (/cgi-bin/|\?) 0    0%  0
2012/09/10 13:19:57| Processing: refresh_pattern (Release|Packages(.gz)*)$      0       20%     2880
2012/09/10 13:19:57| Processing: refresh_pattern .      0   20% 4320
2012/09/10 13:19:57| Processing: http_access allow all
2012/09/10 13:19:57| Processing: cache_mem 512 MB
2012/09/10 13:19:57| Processing: logformat squid3 %ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru
2012/09/10 13:19:57| Processing: access_log /home/panshul/squidCache/log/access.log squid3

次の行を有効にすると、問題が発生します。

access_log /home/panshul/squidCache/log/access.log

proxy server is refusing connections errorブラウザに入り始めます。設定で上記の行をコメントアウトすると、通常の状態に戻ります。

2番目の問題は、構成に次の行を追加すると開始されます。

cache_dir ufs /home/panshul/squidCache/cache 100 16 256

squidサーバーの起動に失敗します。

設定に何が欠けているかについての提案。助けてください。!!

4

1 に答える 1

3

access_logディレクティブの最後に「squid」を追加してみてください。

access_log /home/panshul/squidCache/log/access.log squid

ここでの解決策はおそらく... Ubuntuフォーラム-Squid構成ソリューション

于 2012-11-16T00:53:17.787 に答える