Apache HTTP Server Version 2.2

This document refers to a legacy release (2.2) of Apache httpd. The active release (2.4) is documented here. If you have not already upgraded, please follow this link for more information.
You may follow this link to go to the current version of this document.
| 설명: | HTTP 헤더를 포함한 파일을 보낸다 |
|---|---|
| 상태: | Base |
| 모듈명: | asis_module |
| 소스파일: | mod_asis.c |
이 모듈은 아파치가 일반적인 HTTP 헤더의 대부분을 추가하지않고
문서를 보내도록 만드는 send-as-is 핸들러를
제공한다.
그래서 서버는 cgi 스크립트나 nph 스크립트를 사용하지않고도 리다이렉션과 다른 특별한 HTTP 응답 등 어떤 자료도 보낼 수 있다.
과거에 이 모듈은 mime type이 httpd/send-as-is인
파일도 처리했다.
서버 설정파일에서 파일과 send-as-is 핸들러를
예를 들어 다음과 같이 연결한다.
AddHandler send-as-is asis
아파치는 .asis 확장자를 가진 파일의 내용을
거의 수정하지않고 클라이언트에게 보낸다. 클라이언트는 HTTP
헤더가 필요하므로 빼먹지마라. Status: 헤더도 필요하다. 이
헤더의 내용은 세자리 숫자인 HTTP 응답코드와 그 뒤의 문구이다.
다음은 내용 그대로 클라이언트에게 파일이 리다이력션되었다고 알리는 파일의 예이다.
Status: 301 Now where did I leave that URL
Location: http://xyz.abc.com/foo/bar.html
Content-type: text/html
<html>
<head>
<title>Lame excuses'R'us</title>
</head>
<body>
<h1>Fred's exceptionally wonderful page has moved to
<a href="http://xyz.abc.com/foo/bar.html">Joe's</a>
site.
</h1>
</body>
</html>
서버는 자료를 클라이언트에게 보낼때 항상 Date:와
Server: 헤더를 추가하므로, 파일에 이 헤더가
있으면 안된다. 서버는 Last-Modified 헤더를
추가하지 않는다. 그래서 아마도 이 헤더는 포함해야
한다.