Skip to content

squid.conf : Reverse Proxy

조회 수 11862 추천 수 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/f92/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
287 CentOS Samba 설정 ADMINPLAY 2010-11-08 24884
286 가볍고 강력한 SNMP를 이용한 모니터링 프로그램입니다. file ADMINPLAY 2009-10-31 24859
285 리눅스 - htop file ADMINPLAY 2010-09-12 24838
284 favicon 만들기 ADMINPLAY 2009-09-30 24835
283 네트워크 관리자를 위한 통합 모니터링 툴 - N.E.W.T file [2] ADMINPLAY 2009-10-31 24705
282 리눅스 - zip 압축 해제 ADMINPLAY 2009-07-25 24646
281 [CentOS] ffmpeg 설치 ADMINPLAY 2012-02-07 24495
280 리눅스 Proxy Server[Squid] 설정법[RedHatLinux8.0] ADMINPLAY 2009-11-26 24408
279 커널 컴파일 장애 처리 perl: warning: Please check that... ADMINPLAY 2009-08-08 24378
278 대용량 하드 디스크 파티셔닝 (GPT 파티션) ADMINPLAY 2009-06-04 24364
277 lighttpd와 Apache의 성능 차이 file [2] l2zeo 2012-03-08 24242
276 [Flash] 크로스 도메인 설정 방법 ADMINPLAY 2010-08-31 24233
275 로드밸런싱의 ‘꽃’, L4/L7 스위치 관심 집중 ADMINPLAY 2009-11-30 24151
274 kernel panic 발생 시 자동으로 리부팅 설정 ADMIN 2008-12-10 24084
273 하드웨어정보 확인(lshw) file ADMINPLAY 2008-11-03 24038
272 MRTG 소스 설치 ADMINPLAY 2010-05-11 24028
271 리눅스에서 특정 파일을 제외하고 삭제하기 ADMIN 2008-11-03 23970
270 VI 에디터 유니코드(UTF-8)로 인코딩 전환 ADMINPLAY 2010-04-02 23966
269 리눅스 공유 메모리의 설정 (세마포어) ADMINPLAY 2010-04-28 23950
268 젠투리눅스에서 잃어버린 암호를 다시 설정하기 ADMINPLAY 2010-04-15 23899

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234