Skip to content

squid.conf : Reverse Proxy

조회 수 11891 추천 수 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/5a4/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
307 grep 옵션, egrep 옵션 차이점 ADMINPLAY 2010-02-17 26313
306 리눅스 파일/디렉토리 개수 알기 ADMINPLAY 2010-05-19 26253
305 .vimrc 설정 설정, 색상 (VI 설정 색상) ADMINPLAY 2009-03-21 26238
304 rsync : protocol version mismatch -- is your shell clean? ADMINPLAY 2009-05-17 26231
303 리눅스에서 윈도우 공유폴더 접근하기. samba ADMINPLAY 2011-07-12 25936
302 장비를 복제해서 옮겼을 경우 네트워크가 eth0_rename 되... ADMINPLAY 2012-01-31 25849
301 linux - cp 덮어쓰기옵션 ADMINPLAY 2012-02-24 25741
300 CentOS ffmpeg yum install ADMINPLAY 2012-02-07 25631
299 리눅스 TIP ADMINPLAY 2009-03-09 25554
298 iSCSI 설정하기 ADMINPLAY 2011-04-24 25544
297 리눅스 - tar 압축 사용법 ADMINPLAY 2010-02-20 25522
296 리눅스 파일 복구 명령 debugfs ADMINPLAY 2009-06-24 25492
295 MS-DOS 배치파일 문법 ADMINPLAY 2012-01-16 25445
294 CentOS 5.4 Samba 서버 <-> 윈도우7에서 접근 문제 시스템관리짱 2011-03-04 25236
293 백 그라운드, 포그라운드 전환 ADMINPLAY 2009-06-04 25222
292 [FreeBSD]CPU, 메모리, HDD확인 및 네트워크 설정 ADMINPLAY 2012-01-17 25133
291 netstat 의 Send-Q, Recv-Q의 의미 ADMINPLAY 2009-02-09 25021
290 리눅스 시스템 관리자를 위한 즐겨찾기 ADMINPLAY 2009-05-22 25018
289 오라클11g 설치 (in centOS 5.1) ADMINPLAY 2010-04-28 24981
288 tar.gz 특정 디렉토리에 압축풀기 ADMINPLAY 2009-06-29 24959

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234