诡异错误
浏览器访问脚本出错,本地执行没问题:
[root@Sven cgi-bin]# ./simple2.cgi
Content-type: text/plain
Hello, world!
错误详情
url访问脚本出现以下错误:
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.
CGI脚本
#!/usr/bin/env python3
import cgi
form = cgi.FieldStorage()
name = form.getvalue('name', 'world')
print('Content-type: text/plain')
print('Hello, %s!' % name)
</