为什么我在 Ubuntu 上收到 500 内部服务器错误,但它在 Raspberry Pi 上有效?

Why do I get a 500 Internal Server Error on Ubuntu but it works on Raspberry Pi?

我在 ubuntu 上尝试从 apache2 服务器 运行 创建和下载 pdf 时在我的 apache 日志文件中收到以下错误。 运行 在我的 raspberry pi 上完全相同的程序很好,所以我显然有一些设置不正确给 django 一个问题,但我无法弄清楚。非常欢迎提供帮助。

[Fri Apr 22 15:50:46.852155 2016] [wsgi:error] [pid 22606] [remote 109.149.72.248:60966] mod_wsgi (pid=22606): Exception occurred processing WSGI script '/var/www/zouz$
[Fri Apr 22 15:50:46.852198 2016] [wsgi:error] [pid 22606] [remote 109.149.72.248:60966] Traceback (most recent call last):
[Fri Apr 22 15:50:46.852213 2016] [wsgi:error] [pid 22606] [remote 109.149.72.248:60966]   File "/var/www/zouzoukos/env/lib/python2.7/site-packages/django/core/handler$
[Fri Apr 22 15:50:46.852295 2016] [wsgi:error] [pid 22606] [remote 109.149.72.248:60966]     start_response(force_str(status), response_headers)
[Fri Apr 22 15:50:46.852310 2016] [wsgi:error] [pid 22606] [remote 109.149.72.248:60966] ValueError: carriage return/line feed character present in header value

伙计们,我真的很抱歉,但我找出了问题所在,我在 ReportLab 中为 Ubuntu 上的 运行 版本引入了希腊字符集,但不是 Ubuntu 版本在树莓派上。

我现在已经使用 utf-8 编码对其进行了排序,我将接受此答案并尽快关闭此线程。