7月 222008
 

我是从下面链接第一次配置成squid的:

squid的最基本的配置:

http_port   3128
http_access allow localhost
http_access deny all

启用反向代理:

httpd_accel_host 127.0.0.1
httpd_accel_port 81                   #apache的端口
httpd_accel_single_host on
httpd_accel_with_proxy on          #启用缓存
httpd_accel_uses_host_header on #启用虚拟主机支持

好了,就这么多squid 就可以通过端口3128代理apache端口81了

参考资料:http://blog.daviesliu.net/2006/09/09/010620/

 Posted by at 上午 7:04