Skip to content

squid.conf

조회 수 22773 추천 수 0 2012.03.07 13:28:12
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/79886/cd7/trackback
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
147 리눅스 IO 스케쥴러 변경하기 ADMINPLAY 2010-12-13 33226
146 [linux] 리눅스에서 hostname 변경과 구동과정 ADMINPLAY 2010-12-16 28336
145 [설정] 로그 파일 관리 - logrotate ADMINPLAY 2010-12-23 17486
144 vi 에디터 - 라인 범위정해서 주석처리하기 ADMINPLAY 2011-01-07 21227
143 Linux에서 Oracle 인스톨시 발생하는 에러 ADMINPLAY 2011-01-13 23261
142 Linux 특수 퍼미션 ADMINPLAY 2011-01-14 18848
141 커널패닉시 자동으로 리부팅되도록 설정 ADMINPLAY 2011-02-07 20167
140 libphp4.so: cannot restore segment prot after reloc: P... ADMINPLAY 2011-02-07 23577
139 CentOS 5.4 Crond 설치 ADMINPLAY 2011-02-07 19753
138 [Linux_CentOS_5.5] 텍스트 모드(Text mode)에서 해상도 변경 file ADMINPLAY 2011-02-11 29289
137 tomcat log 쌓이는 것 방지하기 ADMINPLAY 2011-02-17 38178
136 CentOS 5.4 Samba 서버 <-> 윈도우7에서 접근 문제 시스템관리짱 2011-03-04 25236
135 iscsi-target 설정 에러 모음 ADMINPLAY 2011-04-24 22111
134 iSCSI 설정하기 ADMINPLAY 2011-04-24 25544
133 snmpd 로그메세지 남기지 않기 ADMINPLAY 2011-04-28 17153
132 sulinux 1.0. 서버 패키지 리스트 ADMINPLAY 2011-04-30 47806
131 ssh 로 상대방 서버에 자동으로 접속하기 ADMINPLAY 2011-05-03 18511
130 phpmyadmin 에 로그인시 The configuration file now nee... ADMINPLAY 2011-06-10 18430
129 rsync ssh 포트 말고 다른포트 사용법 ADMINPLAY 2011-06-10 18974
128 eAccelerator설치와 PHP 성능 향상 분석 ADMINPLAY 2011-06-22 23535

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234