首页 > Windows开发 > 详细

windows 2008 squid3.0 配置反向代理服务器

时间:2014-11-12 18:11:46      阅读:645      评论:0      收藏:0      [点我收藏+]






acl manager proto cache_object

acl localhost src 127.0.0.1/32

acl to_localhost dst 127.0.0.0/8 0.0.0.0/32


acl localnet src 10.0.0.0/8# RFC1918 possible internal network

acl localnet src 172.16.0.0/12# RFC1918 possible internal network

acl localnet src 192.168.0.0/16# RFC1918 possible internal network





acl SSL_ports port 443

acl Safe_ports port 80# http

acl Safe_ports port 21# ftp

acl Safe_ports port 443# https

acl Safe_ports port 70# gopher

acl Safe_ports port 210# wais

acl Safe_ports port 1025-65535# unregistered ports

acl Safe_ports port 280# http-mgmt

acl Safe_ports port 488# gss-http

acl Safe_ports port 591# filemaker

acl Safe_ports port 777# multiling http

acl CONNECT method CONNECT


http_access allow  all

#http_access allow manager localhost

http_access deny manager

http_access deny !Safe_ports

http_access deny CONNECT !SSL_ports


http_access allow localnet


icp_access allow localnet

icp_access deny all

visible_hostname  squidserver1

htcp_access allow localnet


http_port 80 vhost vport

hierarchy_stoplist cgi-bin ?


cache_mem 100 MB

access_log c:/squid/var/logs/access.log squid

cache_log c:/squid/var/logs/cache.log

cache_store_log c:/squid/var/logs/store.log

cache_peer 192.168.33.129 parent 18080 0  no-query originserver no-digest name=upaicn

cache_peer_domain upaicn  youjie.co

cache_peer_access upaicn  allow all


refresh_pattern ^ftp:144020%10080

refresh_pattern ^gopher:14400%1440

refresh_pattern (cgi-bin|\?)00%0

refresh_pattern .020%4320


icp_port 3130

coredump_dir c:/squid/var/cache




cache_peer 192.168.33.129 parent 18080 0 no-query originserver no-digest name=dycc_uid7_cn

cache_peer_domain dycc_uid7_cn youjie.co

cache_peer_access dycc_uid7_cn   allow all



cache_peer 192.168.33.129 parent 28080 0  no-query originserver no-digest name=u_pai_cn

cache_peer_domain  u_pai_cn u-pai.cn

cache_peer_access u_pai_cn  allow all





windows 2008 squid3.0 配置反向代理服务器

原文:http://7432562.blog.51cto.com/7422562/1575648

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!