我在使用当前的apache httpd (2.2.21)和mod_fcgid (2.3.6)版本时遇到了问题。在我的项目中,httpd.conf中的ScriptAlias指令可以包含空格,因为操作系统路径可以包含空格。此用法适用于较早的httpd和fcgid版本。但自从我们切换到当前版本后,它就不再起作用了。如果ScriptAlias的路径包含一个空格,并且mod_fcgid想要启动我的fcgi进程,我会得到以下错误日志:
326 [Fri Jan 06 11:30:01 2012] [notice] Apache/2.2.21 (Unix) mod_fcgid/2.3.6 configured -- resuming normal operations
327 [Fri Jan 06 11:30:03 2012] [warn] [client 77.58.246.206] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
328 [Fri Jan 06 11:30:03 2012] [error] [client 77.58.246.206] Premature end of script headers: somename.fcgi这是一个已知的问题吗?我在谷歌上找不到任何东西。
最佳大卫
发布于 2012-11-23 14:20:31
是的,不幸的是,Apache2.2.21的mod_fcgid副本不能与带有空格的路径一起工作。bug已提交,应在较新版本中解析,因此您可以进行更新,也可以使用路径的8.3短名称。
https://stackoverflow.com/questions/8756550
复制相似问题