질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

답변 부탁 드립니다. ETag 설정에 관한 문제 입니다.

작성자 정보

  • 리눅스 초보 작성
  • 작성일

컨텐츠 정보

본문

안녕하세요

먼저 이렇게 글을 읽어 주셔서 감사합니다.

http://studio.tellme.com/vxml2/ovw/perf/cache_apache13.html#inode_etags

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

위의 페이지에 보시면 아래와 같은 부분이 있었습니다.

ETags and Web server farms

An ETag is an HTTP response header returned by an HTTP/1.1 compliant Web server such as Apache 1.3x. By default, Apache calculates an ETag for a requested file using a combination of the file's location in the file system (I-Node number on Unix systems), its modification time, and its size. The proxy caches running on the Tellme Voice Application Network use the value of the ETag header in conjunction with the If-None-Match request header when validating an object with an origin server.

Because the ETag is calculated using the file's I-Node, and an I-Node is machine-specific, administrators of Web server farms will experience unexpected requests if the ETag differs from machine to machine.

To work around this issue, use the FileETag directive to configure your Apache server to use only the file modification time and file size when calculating the ETag.

The following example configures Apache to only use the modification time (MTime) and size (Size) when calculating the ETag for any file contained in the /usr/local/httpd/htdocs directory or a subdirectory.

문제가 무었이냐 하면 이미지 서버를 이용할려고 합니다. 
여러대의 이미지 서버를 이용하게 되면 L4단에서 여러 이미지 서버로 연결을 시켜 주도록 되어 있는데요.
여기서 문제는 처음과 다른 이미지 서버로 클라이언트가 접속하게 되면 또 다시 이미지를 받아 온다는 것입니다.
위의 내용으로 보면 file i-node, last modification date, file size 이 세가지를 설정하게 되는데 이중 last modification date, file size 만 
구성하게 되면 된다고 합니다. FileETAG라는 것으로 MTime size라고만 하면 된다고 하는데.
보시다 싶이 위의 내용은 아파치 버젼이 1.3.x 버젼입니다. 2.x 버젼대로 가면서 httpd.conf 파일에 변경이 있어서 그런지 
ETag에 대한 설정 내용은 보이지 않네요. 
이 부분에 대해서 아시는 분은 메일이나 리플 부탁 드립니다.
감사합니다. 
수고하세요.

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,037 명
  • 현재 강좌수 :  35,806 개
  • 현재 접속자 :  91 명