Skip to content
조회 수 3096 추천 수 0 댓글 7
?

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

아파치 mod_cache mod_disk_cache 알아보기


아파치 성능향상


아파치 모듈 mod_disk_cache


mod_disk_cache는 mod_cache가 필요하다.



설명 : Content cache storage manager keyed to URIs

상태 : Experimental

모듈명 : disk_cache_module

소스파일 : mod_disk_cache.c


top

CacheIgnoreCacheControl 지시어

설명:클라이언트가 캐쉬하지않는 내용을 요청함을 무시한다.
문법:CacheIgnoreCacheControl On|Off
기본값:CacheIgnoreCacheControl Off
사용장소:주서버설정, 가상호스트
상태:Experimental
모듈:mod_cache

보통 no-cache나 no-store 헤더값을 가진 문서는 캐쉬에 저장하지않는다.CacheIgnoreCacheControl 지시어는 이런 행동을 변경한다.CacheIgnoreCacheControl On을 사용하면 서버는 문서에 no-cache나 no-store 헤더값이 있어도 문서를 캐쉬한다. 인증이 필요한 문서는 절대로 캐쉬하지 않는다.





mod_disk_cache는 디스크기반 저장관리자를 구현한다. 이 모듈은 기본적으로 mod_proxy와 같이 사용한다.


내용을 URI를 토대로 만든 키로 캐쉬에 저장하고 가져온다. 접근보호가 된 내용은 캐쉬하지않는다.



설정 옵션

https://www.linux.co.kr/apache/apache2_manual/mod/mod_cache.html



Proxy 서버와 함께 이용할때 유용하고, 특히 WebService등에서 변화 주기가 낮은 서비스에 대해서 이 Cache 기능을 사용하면 성능 향상에 도움이 될것 같다.


LoadModule cache_module modules/mod_cache.so

LoadModule mem_cache_module modules/mod_mem_cache.so

LoadModule disk_cache_module modules/mod_disk_cache.so


<IfModule mod_cache.c>



  <IfModule mod_disk_cache.c>

    CacheRoot /env/pahache2/cache

    CacheSize 256

    CacheEnable disk /book

    CacheDirLevels 5

    CacheDirLength 3

  </IfModule>


  <IfModule mod_mem_cache.c>

    CacheEnable mem /book

    MCacheSize 4096

    MCacheMaxObjectCount 100

    MCacheMinObjectSize 1

    MCacheMaxObjectSize 2048

  </IfModule>

</IfModule>



mod_cache 설정 A

http://itrooms.tistory.com/47


<IfModule mod_cache.c>

    <IfModule mod_disk_cache.c>

        CacheEnable disk /

        CacheRoot /var/cache/mod_cache/tmp

        CacheDirLevels 2

        CacheDirLength 1

        CacheMaxFileSize 300000

        CacheMinFileSize 1

        #CacheIgnoreCacheControl On

        CacheIgnoreNoLastMod On

        CacheIgnoreQueryString Off

        CacheIgnoreHeaders None

        CacheLastModifiedFactor 0.1

        CacheDefaultExpire 300

        CacheMaxExpire 86400

        #CacheStoreNoStore On

        #CacheStorePrivate On

    </IfModule>

</IfModule>



윈도우용으로 수정 필요시 아래의 주소 참조


#아파치 #mod_cache #mod_disk_cache #urin79

<IfModule cache_module>
    <IfModule disk_cache_module>
        CacheRoot /httpd/2.2.31/cacheroot
        CacheEnable disk /
    </IfModule>
</IfModule>
지정된 CacheRoot 위치의 캐시 디렉토리에 캐시 데이터가 쌓이는지 확인한다.

윈도우용 모드캐시 완벽가이드





https://www.apachelounge.com/viewtopic.php?t=5653
<IfModule cache_module> 

   <IfModule cache_disk_module> 
       
       CacheRoot C:/temp/cache 
       CacheEnable disk / 
      CacheDirLevels 2 
        CacheDirLength 3 
      CacheIgnoreNoLastMod On 
      CacheIgnoreCacheControl On 
      CacheIgnoreQueryString Off 
      CacheDefaultExpire 3600 
      CacheMaxExpire 86400 
      CacheMaxFileSize 5000000 
    </IfModule> 
</IfModule> 
로그인 후 댓글쓰기가 가능합니다.

?
  • ?
    nanumi 2016.08.18 08:28
    http://dumpcookie.tistory.com/m/post/21
  • ?
    nanumi 2016.08.18 08:47
    http://mygeni.tistory.com/m/post/10
  • ?
    nanumi 2016.08.18 11:37

    http://webdir.tistory.com/178

  • ?
    nanumi 2016.08.18 11:37

    http://confluence.goldpitcher.co.kr/pages/viewpage.action?pageId=753706

  • ?
    nanumi 2016.08.18 11:38

    http://confluence.goldpitcher.co.kr/pages/viewpage.action?pageId=117212484


List of Articles
번호 분류 제목 날짜 조회 수
517 WindowsTip MS-DOS 모드에서 Windows 복원 방법 3 2013.02.26 8180
516 컴퓨터잡담 제로보드 XE 게시판 내용보기에 애드센스 광고 삽입 방법 4 2013.02.26 9782
515 컴퓨터잡담 무료 온라인 프록시 웹 사이트 2013.02.25 10140
514 WindowsTip SysFader: iexplore.exe - 응용 프로그램 오류 해결방법 1 file 2013.02.23 12360
513 Visual C++ C# - Etrade API 11 file 2013.02.20 15596
512 Visual C++ C# - etrade api site 게시물 1 2013.02.20 32889
511 WindowsTip 윈도우 콘솔(CMD), DIR 명령어 1 2013.02.18 9384
510 WindowsTip 스윙 브라우저와 크롬 브라우저 비교 file 2013.02.14 8117
509 WindowsTip 랜카드 전원관리 기능 해제로 인터넷 끊킴 해결방법 1 file 2013.02.13 11103
508 WindowsTip 영문XP 한글화 MUI 정보 3 file 2013.02.13 9764
507 Visual C++ C#) 입문 - 프로젝트 생성하기 4 file 2013.02.12 18317
506 WindowsTip Iexplorer_익스플로러 오류)0x7c0c5a6c에 있는 명령이 0x7c0c5a6c의 메모리를 참조했습니다. 1 file 2013.02.05 8203
505 컴퓨터잡담 문서 보안 프로그램 삭제 방법 1 2013.02.02 19424
504 AutoHotKey autohotkey)매월 1일의 요일 구하기 1 2013.01.27 15262
503 WindowsTip Windows 7 인터넷속도 향상시키기 2013.01.25 8991
502 WindowsTip 네트워크 성능 측정(트래픽 대량 발생으로 통신속도 측정) 1 file 2013.01.24 15841
501 WindowsTip 네트워크 부하(Offered Load) 관련 Discard Rate 2 2013.01.24 11631
500 WindowsTip imm32.dll 다운 바이러스 오류 해결법(한글이 잘 안써지는 문제 등) 1 file 2013.01.23 8140
499 WindowsTip 윈도우 DLL 오류 해결방법 2013.01.23 192701
498 컴퓨터잡담 한글(hwp) msvcr71.dll 오류 해결방법 1 1 file 2013.01.22 6699
Board Pagination Prev 1 ... 19 20 21 22 23 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소