게시물 1,045건
   
[SQUID 3.1.X] INSTALL
글쓴이 : 최고관리자 날짜 : 2011-07-20 (수) 13:41 조회 : 13169
글주소 :
                                
 
# ./configure --prefix=/usr/local/squid -enable-gnuregex -enable-carp -enable-async-io=80 -enable-removal-policies=heap,lru -enable-icmp -enable-delay-pools -enable-useragent-log -enable-snmp -enable-arp-acl -enable-htcp -enable-underscores -enable-auth -enable-x-accelerator-vary -enable-cache-digests -enable-poll -enable-linux-tproxy -enable-linux-netfilter -with-pthreads -with-aio -with-filedescriptors=65536 -enable-default-err-language=ko-kr
# make
# make install

 
squid.conf
visible_hostname img1.mojily.com
visible_hostname img2.mojily.com
 
http_port 8080 vhost vport
cache_mem 512 MB
maximum_object_size_in_memory 10240 KB
memory_replacement_policy lru
cache_dir ufs /usr/local/squid/var/cache 512 16 256
#max_open_disk_fds 0
minimum_object_size 0 KB
maximum_object_size 15 MB
 
※ VirtualHost 적용 
cache_peer img1.mojily.com parent 80 0 no-query no-digest originserver name=img1
cache_peer img2.mojily.com parent 80 0 no-query no-digest originserver name=img2
 
cache_peer_domain img1 img1.mojily.com
cache_peer_domain img2 img2.mojily.com
 
#cache_peer_access img1 allow all
http_access allow all
 
cache_effective_user nobody
cache_effective_group nobody
 
logformat combined %>a %ui %un [%{%d/%b/%Y:%H:%M:%S +0000}tl] "%rm %ru HTTP/%rv" %<Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
access_log /usr/local/squid/var/logs/access.log combined
cache_log /usr/local/squid/var/logs/cache.log
cache_store_log /usr/local/squid//var/logs/store.log
 
#coredump_dir /usr/local/squid/var/cache
#refresh_pattern ^ftp: 60 20% 10080
#refresh_pattern ^gopher: 60 0% 1440
#refresh_pattern ^gopher: 60 0% 1440
#refresh_pattern . 0 20% 1440
refresh_pattern -i \.css$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.js$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.html$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.gif$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.swf$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.jpg$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.png$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.bmp$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.doc$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.ppt$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.xls$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.pdf$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.rar$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.zip$ 0 70% 86400 reload-into-ims
refresh_pattern -i \.txt$ 0 70% 86400 reload-into-ims
 
logfile_rotate 5
memory_pools on
memory_pools_limit 0
client_db off
#always_direct allow all
error_directory /usr/local/squid/share/errors/ko-kr
uri_whitespace deny
high_response_time_warning 1500
store_dir_select_algorithm least-load
 

최고관리자 2011-11-17 (목) 12:45
# 서버IP 및 웹서버 포트(8080)
cache_peer xxx.xxx.xxx.xxx parent 8080 0

 

# squid 가 사용할 포트(80) 및 웹서버 포트(8080)
http_port 80 accel defaultsite=xxxxxxxx.com:8080
최고관리자 2012-01-04 (수) 14:30
이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.