Linkeyの日記: できる!Proxyサーバ
とりあえずportsでインストール後、以下のように暫定修正。
で、おまじないを入力して起動。
# /usr/local/sbin/squid -z
# /usr/local/sbin/squid
細かい設定はもう少し後で。
--- squid.conf.default Wed Sep 26 15:59:46 2001
+++ squid.conf Wed Oct 3 15:20:52 2001
@@ -45,7 +45,7 @@
# You may specify multiple socket addresses on multiple lines.
#
#Default:
-# http_port 3128
+http_port 80
# TAG: icp_port
# The port number where Squid sends and receives ICP queries to
@@ -1551,8 +1559,8 @@
# you cannot set http_port to a value lower than 1024.
#
#Default:
-# cache_effective_user nobody
-# cache_effective_group nogroup
+cache_effective_user nobody
+cache_effective_group nogroup
# TAG: visible_hostname
# If you want to present a special hostname in error messages, etc,
@@ -1649,7 +1657,8 @@
# the 'httpd_accel_with_proxy' option.
#
#Default:
-# httpd_accel_port 80
+httpd_accel_host virtual
+httpd_accel_port 80
# TAG: httpd_accel_single_host on|off
# If you are running Squid as a accelerator and have a single backend
@@ -1678,7 +1687,7 @@
# setting)
#
#Default:
-# httpd_accel_with_proxy off
+httpd_accel_with_proxy on
# TAG: httpd_accel_uses_host_header on|off
# HTTP/1.1 requests include a Host: header which is basically the
@@ -1693,7 +1702,7 @@
# require the Host: header will not be properly cached.
#
#Default:
-# httpd_accel_uses_host_header off
+httpd_accel_uses_host_header on
# MISCELLANEOUS
@@ -2106,7 +2115,7 @@
# performed).
#
#Default:
-# none
+anonymize_headers allow