サーバー設定ネットワーク関連

Q. プロキシサーバーとしてSquidV2.7を使用していますが、接続できません。原因は何でしょうか?

Answer


SquidV2.7を使用するときには、以下の設定をおこなっていただく必要があります。

①HTTP1.1 対応にしておく必要があります。


#          http11       Enables HTTP/1.1 support to clients. The HTTP/1.1
#                       support is still incomplete with an internal HTTP/1.0
#                       hop, but should work with most clients. The main
#                       HTTP/1.1 features missing due to this is forwarding
#                       of requests using chunked transfer encoding (results
#                       in 411) and forwarding of 1xx responses (silently
#                       dropped)
#                    use http11 to send requests using HTTP/1.1 to this peer.
#                    Note: The HTTP/1.1 support is still incomplete, with an
#                    internal HTTP/1.0 hop. As result 1xx responses will not
#                    be forwarded.
http_port 8080 http11

②SQUID2.7 を利用の場合には、IGNORE_EXPECT_100_CONTINUE=ON にしてください。

#  TAG: ignore_expect_100       on|off
#       This option makes Squid ignore any Expect: 100-continue header present
#       in the request.
#       Note: Enabling this is a HTTP protocol violation, but some client may
#       not handle it well..
#
#Default:
# ignore_expect_100 off  ← デフォルトではエラーになります
ignore_expect_100 on

オンラインヘルプの改善にご協力ください。

このページは役に立ちましたか?