python cgi编程,web访问不了。

之前在/var/www/cgi-bin中编写的html,py,cgi文件通过web能访问,现在编写的就不能访问。
一直报错:
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.

编写的html 代码可以直接访问,代码:



File Editor



File name:




1个回答

internal error,就是你的应用程序代码有问题,检查一下cgi代码的log等,看具体出错的地方

Katherine130
Katherine130 看来,代码没有问题。但是有提示错误。File "/var/www/cgi-bin/index_edit.html", line 2 279 <html> 280 ^ 281 SyntaxError: invalid syntax 282 [Tue Apr 12 02:53:39 2016] [error] [client 127.0.0.1] Premature end of script headers: index_edit.html
4 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐