/usr/local/apache/bin/apachectl startssl 을 시킵니다.
httpd.conf 와 ssl.conf 에 DefaultType text/plain 있습니다.
bash 로 짠 cgi 에서 다른 파일(html문서)을 cat 합니다. 즉,
cat alert.msg
이런식으루요..
근데, 그 alert.msg 의 제일 처음부분에는
Content-type:text/plain
은 없고 바로 <HTML> 로 시작합니다.
그런데, 화면에 나타나지 않습니다. error 메시지를 보면
Bad header 가 나옵니다. 설정파일에 DefaultType 이
있는데두요. 그래서 alert.msg 파일 처음에
Content-type:text/plain <- 이걸 넣어주면 화면에 보입니다.