안녕하세요..
갑자기 CGI를 쓸일이 생겨서 설치해보려구하는데요..
다 맞게한것 같은데 에러가 나네요.. 고수님들 좀 봐주시고 답변주시면 감사
하겠습니다.
* 서버 설정 ---------------
httpd.conf 에서
AddType application/x-httpd-cgi .cgi <-- 추가
AddHandler cgi-script .cgi <-- 주석제거
를 해주고
#ScriptAlias 는 주석처리 했구요..
디렉토리는 아래와 같이 해줬습니다.
<Directory "/usr/xxx/kic/search">
Options FollowSymLinks Multiviews ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
CGI 소스(hello.cgi)는 이거구요..
-----------------------------------------
#!/usr/bin/perl
print "Content-type: text/html";
print "Hello World!";
-----------------------------------------
에러는
웹에서 -------------------------------------------------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, webmaster at intzone.co.kr and
inform them of the time the error occurred, and anything you might
have done that may have caused the error.
More information about this error may be available in the server error
log.
---------------------------------------------------------------------
에러 로그를 보면
[Fri Dec 1 14:48:30 2000] [error] (2)그런 파일이나 디렉토리가 없음:
exec of /usr/xxx/kic/search/hello.cgi failed
[Fri Dec 1 14:48:30 2000] [error] [client 211.42.142.87] Premature
end of script headers: /usr/xxx/kic/search/hello.cgi
--------------------------------------------------------------------
이렇게 나옵니다..
여기저기서 하라는 데로 다해봤는데 더이상은 모르겠네요..
어떻게 해야되는건가요?
좀도와주세요..ㅜㅜ--서명~