안녕하세요.
리눅스에서 아파치로 웹서버를 구축하고자하는
초보입니다.
브라우저로 볼때 html문서는 잘 되는데..
CGI를 실행 할 때 오류가 납니다.
브라우저에 출력되는 오류의 내용은 아래와 같습니다.
______________________________________________________________
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to
complete your request.
Please contact the server administrator, root@localhost 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.
______________________________________________________________
그리고 아파치의 오류로그를 살펴보면 다음과 같습니다.
/var/log/httpd/error_log
______________________________________________________________
[Mon Apr 10 14:50:08 2000] [error] (2)그런 파일이나 디렉토리가 없음:
exec of /home/httpd/html/search.cgi failed
[Mon Apr 10 14:50:08 2000] [error] [client 210.115.170.97] Premature end of script
headers: /home/httpd/html/search.cgi
______________________________________________________________
httpd.conf 파일의 설정의 관련 내용이라 생각되는 부분도 아래와
같습니다.
AddHandler cgi-script .cgi
AddType application/x-httpd-cgi .cgi
<Directory /home/*>
Options ExecCGI FollowSymLinks Indexes
AllowOverride Options FileInfo AuthConfig Limit
Order allow,deny
Allow from all
</Directory>
아래와 같은 간단한 perl 스크립트 조차 실행이 안되는 군요.
#!/usr/bin/perl
print "Content-type: text/html\n\n" ;
print "Hello, World...\n"
#___end______
원인을 알고 계시는 분은 답변을 해주시면 고맙겠습니다.
그럼이만
|