2 katherine130 Katherine130 于 2016.04.12 15:07 提问

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个回答

oyljerry
oyljerry   Ds   Rxr 2016.04.12 15:09

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
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!