Skip to content

조회 수 14796 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
mod_expires모듈을 사용할경우 이미지가 많은 (사진사이트나, 사진전용서버)에서 유용한 모듈이다. 설정을 해주면 브라이저캐쉬를 사용하여 서버의 부하나 속도가 향상된다. 내사이트에는 이미지들이 많이없어 체감속도를 많이는 느끼지 못했다^^;
아래처럼 설정할경우 브라우저캐쉬에 1달간 보관된다.

<IfModule mod_mod_expires.c>
ExpiresActive On
ExpiresByType image/bmp "access plus 1 month"
ExpiresByType image/cgm "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/tiff "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType video/mpeg "access plus 1 month"
ExpiresByType video/quicktime "access plus 1 month"
ExpiresByType video/x-msvideo "access plus 1 month"
ExpiresByType audio/basic "access plus 1 month"
ExpiresByType audio/midi "access plus 1 month"
ExpiresByType audio/mpeg "access plus 1 month"
ExpiresByType audio/x-aiff "access plus 1 month"
ExpiresByType audio/x-mpegurl "access plus 1 month"
ExpiresByType audio/x-pn-realaudio "access plus 1 month"
ExpiresByType audio/x-wav  "access plus 1 month"
</IfModule>

출처 : http://phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=56733&sca=&sfl=wr_subject%7C%7Cwr_content&stx=httpd.conf&sop=and

List of Articles
번호 제목 글쓴이 날짜 조회 수
68 Apache 2.2.17 (mod_url 하고 mod_rewrite 충돌) file ADMINPLAY 2011.08.18 20546
67 트래픽분석툴(mod_throttle) 설치 및 설정 - apache1.3.x ... file ADMINPLAY 2010.05.03 20178
66 KeepAlive 설정 및 정의 ADMINPLAY 2012.01.16 20038
65 Apache 2.2.21 패치 (mod_proxy_ajp 패치와 apache killer... ADMINPLAY 2012.01.16 19804
64 [Apache] MPM(Prefork VS Worker) ADMINPLAY 2012.01.16 19784
63 아파치 컴파일 에러(apr-util) configure: error: cannet ... ADMINPLAY 2009.08.08 19737
62 apache + oracle (오라클 DB 한글깨짐) ADMINPLAY 2010.02.24 19733
61 apache server 2.2, Tomcat5.5 로드밸런싱 및 클러스터 ADMINPLAY 2009.12.10 19290
60 mod_gzip, mod_deflate ADMINPLAY 2010.07.29 19254
59 아파치 2.X 버전에서 mod_cband를 이용한 트래픽관리 file ADMINPLAY 2009.01.17 19194
58 아파치(apache) 무단 링크 방지 ADMINPLAY 2011.06.18 19133
57 웹방화벽 ModSecurity 룰적용 순서 file l2zeo 2010.05.29 19057
56 아파치 GeoIP를 이용한 국가별 제한 ADMINPLAY 2010.01.30 18965
55 Apache - 도메인 포워딩 ADMINPLAY 2010.08.26 18958
54 xcache 설치 (xcache-1.2.2.tar.gz) file ADMINPLAY 2009.03.17 18482
53 squid 로 웹서버 가속하기..---== 강추 ==--- ADMINPLAY 2009.11.26 18364
52 Apache Make시 /usr/lib/libexpat.so: could not read sym... ADMINPLAY 2009.08.07 18072
51 (간단한 팁) 우분투에 Apache2 설치하기 ( apt-get ) 로키 2012.04.01 17777
50 apache가 worker 모드인지 prefork 모드로 동작하는지 확인 1 file l2zeo 2013.01.21 17699
49 아파치에서 한글 파일 읽기 [mod_url 설치] file ADMINPLAY 2009.03.17 17443
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234