squid as a proxy & web accelerator on openSUSE 11.4

squid的配置文件太恐怖了,我只是改了端口,加了用户验证

貌似proxy 和 web accelerator的端口是可以绑在一起的,我不知道怎么做,就分开两个了- –

--- squid.conf.org	2011-03-19 17:22:34.000000000 +0800
+++ squid.conf	2011-03-21 11:33:08.000000000 +0800
@@ -667,6 +667,15 @@
 http_access allow localnet
 http_access allow localhost
 
+#####################################################################
+# my configuration
+#####################################################################
+acl poetpalace dstdomain .poetpalace.org
+http_access allow poetpalace
+auth_param basic program /usr/sbin/ncsa_auth /etc/squid/passwd
+acl auth_user proxy_auth REQUIRED
+http_access allow auth_user
+
 # And finally deny all other access to this proxy
 http_access deny all
 
@@ -1069,7 +1078,11 @@
 #	visible on the internal address.
 #
 # Squid normally listens to port 3128
-http_port 3128
+http_port 8088
+http_port 80 accel vhost vport
+
+cache_peer 127.0.0.1 parent 81 0 no-query originserver
+cache_peer_access 127.0.0.1 allow poetpalace
 
 #  TAG: https_port
 #	Usage:  [ip:]port cert=certificate.pem [key=key.pem] [options...]

其中/etc/squid/passwd 保存了账号密码,使用htpasswd创建

updatedupdated2022-02-222022-02-22