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
번호 제목 글쓴이 날짜 조회 수
88 [정보] [Apache+PHP] Segmentation Fault가 발생할 경우 ADMINPLAY 2012.07.27 47829
87 Apache 웹페이지 한글깨짐, AddDefaultsCharset 설정 file ADMINPLAY 2009.01.03 30520
86 서비스 제한측면의 아파치 활용 예제 ADMINPLAY 2012.06.26 30320
85 make[2]: *** [htpasswd] 오류 1 , make[1]: *** [all-rec... ADMINPLAY 2009.08.07 27109
84 *** glibc detected *** double free or corruption (!pre... ADMINPLAY 2010.05.03 26743
83 Address already in use: make_sock:could not bind to ad... ADMINPLAY 2009.01.10 23798
82 AWSTATS 설치 ADMINPLAY 2008.12.25 23731
81 apache cronolog를 이용한 Apache Log File 날짜 별로 생... ADMINPLAY 2012.01.16 23506
80 Apache mod_deflate ADMINPLAY 2012.01.16 23387
79 apache, tomcat 가상디렉토리 설정 file ADMINPLAY 2010.09.17 23003
78 APM 기본설치후 아파치 실행에러 httpd: Could not determ... ADMINPLAY 2009.08.08 21875
77 Unclean shutdown of previous Apache run? ADMINPLAY 2009.08.05 21795
76 Apache: client denied by server configuration ADMINPLAY 2010.10.25 21665
75 mod_deflate 설정 ADMINPLAY 2011.03.18 21236
74 apache 외부링크 차단 ADMINPLAY 2010.08.31 21221
73 [LINUX] Apache 2.2 + mod jk 1.2 + Tomcat 5.x 연동 ADMINPLAY 2009.05.07 21037
72 아파치에서 멀티도메인 설정 방법 1 l2zeo 2012.10.09 20974
71 Apache 로그레벨의 종류 ADMINPLAY 2012.01.16 20844
70 APM + Snort + ADODB + BASE + oinkmaster 설치 l2zeo 2010.05.29 20816
69 리눅스 개인계정 로딩시 틸드(~)기호없이 그냥 사용 ADMINPLAY 2010.09.22 20684
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234