Skip to content

squid.conf : Reverse Proxy

조회 수 11866 추천 수 0 2012.04.13 11:41:29
error_directory /usr/share/squid/errors/Korean

# 최대저장 용량 200000 (=200G)
cache_dir ufs /data/squid 200000 16 256

# 서비스할 파일의 최대 크기 20G
maximum_object_size 20470 MB

acl localhost src 211.53.35.0/24

#===========================================
emulate_httpd_log on

maximum_object_size_in_memory 10240 KB

# recommanded value = RAM / 3, 1024 MB -> 2560 MB
cache_mem 2560 MB

#==========================================
acl manager proto cache_object

acl PURGE method PURGE
http_access allow PURGE localhost
http_access deny PURGE


http_port 80 accel defaultsite=www.naver.com vhost
http_port 80 accel defaultsite=ftp.daum.net vhost
http_port 80 accel defaultsite=origin.easysw.net vhost
http_port 80 accel defaultsite=ftp.sayclub.com vhost

cache_peer www.naver.com parent 80 0 no-query originserver name=naver
cache_peer_domain naver www.naver.easysw.net naver.easysw.net

cache_peer ftp.daum.net parent 80 0 no-query originserver name=daum
cache_peer_domain daum daum.easysw.net

cache_peer origin.easysw.net parent 80 0 no-query originserver name=origin
cache_peer_domain origin squid1.easysw.net

buffered_logs on

# warning log, 1 -> 1.00
quick_abort_min 1.00 KB

logformat cdn %{Host}>h:80;%{%Y-%m-%d;%H:%M:%S}tl;%tr;%<st;%ru;%>a;%Ss
access_log /var/log/squid/access.log cdn

delay_pools 1
delay_class 1 1
#delay_parameters 1 -1/-1
delay_parameters 1 80000/180000

#refresh_pattern        ^http:          10      20%     4320  ignore-no-cache

refresh_pattern -i . 1 40% 2    override-expire

profile

일요일은 짜빠게뤼~ 먹는날~^^

엮인글 :
http://adminplay.com/87823/7e8/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
87 [CentOS] ffmpeg 설치 ADMINPLAY 2012-02-07 24497
86 리눅스 - zip 압축 해제 ADMINPLAY 2009-07-25 24647
85 네트워크 관리자를 위한 통합 모니터링 툴 - N.E.W.T file [2] ADMINPLAY 2009-10-31 24710
84 favicon 만들기 ADMINPLAY 2009-09-30 24839
83 리눅스 - htop file ADMINPLAY 2010-09-12 24841
82 가볍고 강력한 SNMP를 이용한 모니터링 프로그램입니다. file ADMINPLAY 2009-10-31 24862
81 CentOS Samba 설정 ADMINPLAY 2010-11-08 24890
80 tar.gz 특정 디렉토리에 압축풀기 ADMINPLAY 2009-06-29 24933
79 오라클11g 설치 (in centOS 5.1) ADMINPLAY 2010-04-28 24947
78 netstat 의 Send-Q, Recv-Q의 의미 ADMINPLAY 2009-02-09 24981
77 리눅스 시스템 관리자를 위한 즐겨찾기 ADMINPLAY 2009-05-22 24982
76 [FreeBSD]CPU, 메모리, HDD확인 및 네트워크 설정 ADMINPLAY 2012-01-17 25082
75 CentOS 5.4 Samba 서버 <-> 윈도우7에서 접근 문제 시스템관리짱 2011-03-04 25166
74 백 그라운드, 포그라운드 전환 ADMINPLAY 2009-06-04 25186
73 MS-DOS 배치파일 문법 ADMINPLAY 2012-01-16 25398
72 리눅스 파일 복구 명령 debugfs ADMINPLAY 2009-06-24 25459
71 iSCSI 설정하기 ADMINPLAY 2011-04-24 25471
70 리눅스 - tar 압축 사용법 ADMINPLAY 2010-02-20 25483
69 리눅스 TIP ADMINPLAY 2009-03-09 25527
68 CentOS ffmpeg yum install ADMINPLAY 2012-02-07 25585

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234