Saturday, April 18, 2009

squid インストールと設定とても簡単。

http_port 192.168.11.20:80 vhost
#vport=8080
# defaultsite=www.ecshopping-guide.com
cache_peer 127.0.0.1 parent 8080 0 no-query originserver name=server1
cache_peer 192.168.11.8 parent 3000 0 no-query originserver name=server2


acl site1 dstdomain .ecshopping-guide.com
acl site2 dstdomain .shopping-annai.com

cache_peer_access server1 allow site1
cache_peer_access server2 allow site2

# some restriction definitions
#acl all src 0.0.0.0/0.0.0.0
#acl manager proto cache_object
#acl localhost src 127.0.0.1/255.255.255.255
#acl webcluster src 87.233.132.114
#acl webcluster src 87.233.132.112/28
#acl purge method PURGE
#acl CONNECT method CONNECT

# Make sure that access to your accelerated sites is allowed
http_access allow site1
http_access allow site2

# Deny everything else
#http_access deny all


# Cache properties
cache_mem 50 MB
maximum_object_size_in_memory 2048 KB
cache_replacement_policy heap LRU
memory_replacement_policy heap LRU
cache_dir ufs /var/spool/squid 20000 16 256
access_log /var/log/squid/access.log squid
hosts_file /etc/hosts

すごい簡単、分からないから、質問ください。

No comments:

Post a Comment