티스토리 뷰

데비안에서 CGI 를 설정했다.

-_-; 문제는 도무지 왜 Internal Error 가 나느지;;

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@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.


그래도 역시나 해결했는데 ㅡㅡ;

CGI를 처음써보다 보니 몰라서 생긴일인가 싶다.

#!/usr/bin/python
print "Content-Type: text/plain

"
print "Hello, Python!"
print "asfadsf"


문제는 이녀석이 Windows 파일 포맷에서
을 문자로 인식을 해서 생긴일이 우선 첫번째이고..

두번째는 2번째 줄의

print "Content-Type: text/plain

"


있어야지만... 출력이 된느 ㅡㅡ;;

덕분에 또 한시간 날렸다.