apache+python配置问题

黑土墨 2014-07-05 11:27:49
Apache Server配置Python CGI程序,在httpd.conf中加入

Options ExecCGI
SetHandler cgi-script

后,在地址栏输入http://localhost/hello.py能够正常解析,但是如果是一个html文件就会出现

Internal Server Error

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

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



是不是httpd.conf的配置有问题,该如何配置?
...全文
2099 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lvhongzhi 2016-08-28
  • 打赏
  • 举报
回复
顶一个 顶一个
俊才星驰 2014-08-31
  • 打赏
  • 举报
回复
win7吗? 把你的hello.py文件第一行改成你的python路径试试#!C:/Python27/python.exe

2,204

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 CGI
社区管理员
  • CGI社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧