라즈베리파이3 오류 500 Internal Server Error
조회수 1531회
라즈베리파이를 막 시작했습니다. 책을 읽으면서 웹 서버를 구축하고있는데 오류가 납니다.
오류 내용은 이렇습니다.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
그리고 오류가 난 파일에 작성한 코드는 이렇습니다. 아무리 찾아봐도 뭐가 잘못된지 모르겠습니다.
#!/usr/bin/python
# Import modules for CGI handling
import cgi, cgitb
# Create instance of FieldStorage
form = cgi.FieldStorage()
# Get data from fields
login_id = form.getvalue('loginid')
password = form.getvalue('password')
print "Content-type:text/html\r\n\r\n"
print "<html>"
print "<head>"
print "<title>Hello - Login CGI Program</title>"
print "</head>"
print "<body>"
print "<h2>Hello %s</h2>" % (login_id)
print "</body>"
print "</html>"
어디에 오류가 났을까요?
-
(•́ ✖ •̀)
알 수 없는 사용자
댓글 입력