我使用apache webserver和mod_python作为我的接口。我正在从mod_python移动到mod_wsgi。我已经完成了所有的设置,一切工作正常。现在,当我添加以下行(启用守护进程模式)时,该网站无法正常工作。apache mod_wsgi仅在守护进程模式下崩溃
WSGIDaemonProcess test.tessite.com processes=5 threads=10 display-name=%{GROUP}
作为服务器响应,我收到了500错误。当我看着Apache的错误日志,我都有以下,
[Mon Oct 22 12:31:07 2012] [error] [client 58.68.24.230] Premature end of script headers: ls.wsgi
这是我的conf WSGI设置,
#Set the number of process and threads for each process. process*thread number of requests can be handled at a time
WSGIDaemonProcess test.testsite.com processes=5 threads=10 display-name=%{GROUP}
#Sets which process group WSGI application is assigned to.
WSGIProcessGroup test.testsite.com
#Maps a URL to a filesystem location and designates the target as a WSGI script.
WSGIScriptAlias//public/gdp/trunk/src/ukl/lis/process/ls.wsgi
<Directory /public/gdp/trunk/src/ukl/lis/process/>
Order allow,deny
Allow from all
</Directory>
为什么这个在守护进程模式只发生?如何解决这个问题?运行在非守护进程模式下安全吗?
你想要做的第一件事是确定它是否与mod_python发生冲突。注释掉和mod_python指令并禁止加载mod_python。然后重新测试,看看是否仍然存在。这样你缩小了原因。 –