I installed Node v4.5.0 on my QNAP TS231+. It is located in /usr/local/bin and seemingly works fine.
Now I need CGI-Node to run Node modules through the Apache cgi.
I did what is advised on http://www.cgi-node.org:
- copy cgi-node.js in /share/Web/cgi.bin, give it full execution rights, and set its shebang as #!/usr/local/bin/node
- copy the following lines in .htaccess (under /share/Web):
Code: Select all
Action cgi-node /cgi-bin/cgi-node.js
AddHandler cgi-node .jss
Code: Select all
<? cgiNodeInfo() ?>
Code: Select all
Not Found
The requested URL /cgi-bin/cgi-node.js/cgiNodeInfo.jss was not found on this server.
Apache Server at xyz.myqnapcloud.com Port 8081
Thank your for your suggestions.
Note: I haven't changed Apache configuration file and it seems not necessary to do so.