【发布时间】:2017-06-24 23:35:11
【问题描述】:
我收到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.
Apache/2.2.15 (Red Hat) Server at www.example.com Port 80
我在 python 2.7 应用程序上有一个 django 1.8.8。查看 ~/app-root/logs 中的日志,cron_minutely.log 或 haproxy 日志中没有信息。我还从app/wsgi/ 文件夹中删除了.htaccess。最近我设置了环境变量。 (rhc env set BLA=bla -a app)。
我也读过 env 应该用引号引起来,所以我尝试了rhc env set BLA="bla" -a app。没运气。
我可能应该摆脱 openshift 并将其移至其他地方。但是在一个小应用程序上设置 docker、docker vps、postgres 实例和 crons 会花费我太长时间。那么请问,您知道如何找出问题所在吗?
【问题讨论】:
-
但是 apache 错误日志中有什么内容?
-
我看不到 Apache 的任何错误日志。是
~/app-root/logs的其他地方吗?
标签: python django apache openshift