700 Software
700 Software

Reputation: 87833

Node.JS webserver with CGI support (Open Source)

Is there an open source Node.JS webserver available yet that has CGI support?

Upvotes: 8

Views: 11899

Answers (2)

Uei Richo
Uei Richo

Reputation: 301

If you are looking for a CGI module to run node.js under webservers like Apache or IIS then cgi-node will allow you to do just that.

Apache example: you can add a .htaccess file within your web folder to point all *.jscirpt files to be executed using Node.js through the cgi-node module. Something like this:

Action cgi-node /cgi-bin/cgi-node.js 
AddHandler cgi-node .jscript

Also including the cgi-node.js script found on the cgi-node.org website within the cgi-bin folder.

CGI-Node allows Node.js to behaves exactly like PHP when running under a webserver.

Documentations and tutorials available on the site: cgi-node.org

Upvotes: 3

yojimbo87
yojimbo87

Reputation: 68373

There is a node-cgi module (found through npm registry) which looks to be actively maintained.

Upvotes: 9

Related Questions