deda-ca / cgi-node

CGI Node.js complete module to replace PHP on shared hosting such as GoDaddy
http://www.cgi-node.org/
MIT License
172 stars 21 forks source link

Getting 404s for cgi-node on Apache on OS X #12

Open richardtallent opened 9 years ago

richardtallent commented 9 years ago

I'm trying to set up cgi-node on OS X Yosemite using the built-in Apache server, and I must be missing a step somewhere. The site is operational otherwise.

Steps taken:

(I also tried /usr/local/bin/node, same result.)

When I access the site at "http://blah/test.jss", I get the following error:

Not Found The requested URL /cgi-bin/cgi-node.js/test.jss was not found on this server.

There's nothing awry in Apache's error_log.

deda-ca commented 9 years ago

Your node path within the cgi-node.js file should not contain quotes. Try changing:

!"/Library/WebServer/Documents/tallent/bin/node"

To:

!/Library/WebServer/Documents/tallent/bin/node

I get an internal server error if I put quotes around the path while running in Linux.

If this does not help let me know. I have a Mac machine I can try running the configuration on.