This package is a fork of cgi-node.
Scripts to run JavaScript as CGI on Apache, Nginx, and other web servers.
- Install Node.js on your web server.
- Download
node-cgi.js
,ejs.js
andejs-utils.js
from here and copy them into the cgi-bin folder. - Update the first line within
node-cgi.js
to point to the location of the node executable you uploaded earlier. - Specify the folder where the session files are stored in
process.env.SESSION_PATH
incgi-node.js
- Add the
Action
andHandler
to your config file or.htaccess
file.
This is done.