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/0a4/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
367 linux daemon (리눅스 데몬 설명) ADMINPLAY 2014-02-26 648025
366 대용량 HDD 파티셔닝(Mass storage Partitioning) (GPT 파... ADMINPLAY 2010-04-14 74159
365 FFMPEG를 가장쉽게 설치하는 방법(ffmpeg-php 등) ADMINPLAY 2010-05-03 66932
364 rrdtool 컴파일시 에러 configure: error: Please fix the... ADMINPLAY 2009-08-08 65291
363 커널 2.6으로 업그레이드!「A to Z」 ADMINPLAY 2009-08-08 64937
362 e2fsck - 파일 시스템 복구 및 검사. - fsck file ADMINPLAY 2010-09-12 60904
361 배치파일을 이용한 백업방법 l2zeo 2010-03-31 59533
360 Maskrading ADMIN 2008-11-11 59306
359 시스템 백업과 응급 복구 ADMINPLAY 2009-05-11 59265
358 리눅스 전원부터 부팅이 되기까지의 과정이해 ADMIN 2008-11-11 58144
357 리눅스 디렉토리 구조와 파티션 관리의 기본 ADMINPLAY 2009-05-22 58094
356 hdparm 세부옵션 ADMINPLAY 2012-01-16 55653
355 CentOS 설치 - VMware 상에서 CentOS 설치하기 file l2zeo 2010-02-24 52101
354 Red Hat Linux 9 ADMINPLAY 2009-09-24 51551
353 Dell OMSA 설치 및 이용방법 ADMINPLAY 2014-08-13 50331
352 2TB이상의 Disk를 사용한 Raid6 구성 ADMINPLAY 2015-08-08 46740
351 sulinux 1.0. 서버 패키지 리스트 ADMINPLAY 2011-04-30 46076
350 ORA-01031: insufficient privileges 오류 ADMINPLAY 2010-02-24 41013
349 [APM] 리눅스에서 Apache, PHP, MySQL 등 제거 방법 ADMINPLAY 2009-06-29 39388
348 AIX 필수 명령어 ADMINPLAY 2009-12-10 39124

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234