I'm setting up cgi-node on a dedicated server using the guidance provided at www.cgi-node.org. I've modified the first line of cgi-node.js to point to my node executable as instructed. I am getting the following complaint:
EXCEPTION: ENOENT, no such file or directory 'D:/Programs/nodejs/sessions/2bbaca3254cea595a0f2b24f204f0a87'
I was a bit surprised by the reference to a Windows-style path since I'm running Linux. However, examination of the source code for cgi-node.js reveals that that path is hard-coded into the configuration. Is this another modification that I should be making or what? Thanks for any input.
... doug
答案 0 :(得分:0)
hmm看起来像是一个需要修改的会话路径变量(非优化下载中的第47行,版本0.2):
var CgiNodeConfig =
{
//
// .... blah blah other stuff
//
SessionPath: '/var/foo/sessions' // <-- change this
};