Skip to content

조회 수 14662 추천 수 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
번호 제목 글쓴이 날짜 조회 수
48 RedirectMatch (도메인포워딩) ADMINPLAY 2009.01.23 15435
47 mod_gzip, mod_deflate ADMINPLAY 2010.07.29 19117
46 mod_deflate 설정 ADMINPLAY 2011.03.18 21236
45 make[2]: *** [htpasswd] 오류 1 , make[1]: *** [all-rec... ADMINPLAY 2009.08.07 27109
44 KeepAlive 설정 및 정의 ADMINPLAY 2012.01.16 19891
43 httpd.conf 파일에 대한 설명 / 번역 ADMINPLAY 2008.10.08 14196
42 h264 스트리밍 서버 구축(리눅스,아파치) (실시간 아님, ... ADMINPLAY 2012.08.13 17173
» expires설정으로 브라우저캐시 ADMINPLAY 2009.04.18 14662
40 CGI 퍼미션 으로 웹페이지 열리지 않음 ADMINPLAY 2009.01.12 14674
39 CGI 오류: Premature end of script headers (Internal Se... 1 ADMINPLAY 2008.12.14 14127
38 CentOS 5.X 에 MRTG설치 할때 한글 문제 ADMINPLAY 2014.06.06 6878
37 AWSTATS 설치 ADMINPLAY 2008.12.25 23728
36 AWSTATS 국가별 사용자 분석 ADMINPLAY 2008.12.25 14463
35 APM설치 후 80포트가 연결이 안되요....ㅜㅜ 1 kimbongsoo 2013.02.14 9803
34 APM 기본설치후 아파치 실행에러 httpd: Could not determ... ADMINPLAY 2009.08.08 21875
33 APM + Snort + ADODB + BASE + oinkmaster 설치 l2zeo 2010.05.29 20816
32 Apache의 Indexes된 페이지에서 한글표시 file ADMINPLAY 2009.05.07 16291
31 apache가 worker 모드인지 prefork 모드로 동작하는지 확인 1 file l2zeo 2013.01.21 17467
30 Apache: client denied by server configuration ADMINPLAY 2010.10.25 21665
29 apache2 worker 방식 client 수치 설정법 ADMINPLAY 2009.11.26 16069
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234