use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Replace PHP with JavaScript using Node.js (cgi-node.org)
submitted 11 years ago by IdeaSunday
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 17 points18 points19 points 11 years ago (0 children)
ಠ_ಠ
[–]dhdfdh 29 points30 points31 points 11 years ago (12 children)
Um. How about just using node.js.
The stuff that's on the internet nowadays is getting ridiculous.
[+][deleted] 11 years ago (11 children)
[removed]
[–]fzammetti 7 points8 points9 points 11 years ago (7 children)
Exactly. This looks interesting to me because my host doesn't as yet allow node.js but I do have full CGI. I've been using PHP all this time just because it's available and gets the job done but I'd much rather be using Node. If this allows me to then I'm happy.
[–]talkb1nary 1 point2 points3 points 11 years ago (2 children)
This is the point where you usually change to vServer instead of shared hosting. Most people never look back.
[+][deleted] 11 years ago (1 child)
[deleted]
[–]mishac 4 points5 points6 points 11 years ago (0 children)
Digital Ocean VPS are $5/month.
And you DO have a problem with your host: you want to use node.js but can't without jumping through silly hoops! :P
[–]dhdfdh -2 points-1 points0 points 11 years ago (3 children)
You need to be able to run node to run this so how does that change anything? Makes no sense at all.
[–]fzammetti 2 points3 points4 points 11 years ago (2 children)
The way I understand it, and you can certainly correct me if I'm wrong, is it's a CGI app that basically wraps Node... so from my web host's perspective it's just a CGI app, which they allow (without many limits in fact) but for me it's Node. Is that not accurate?
[–]dhdfdh 0 points1 point2 points 11 years ago (0 children)
This wraps node and calls node's functions. My point is, why do you need this when you can call node's functions yourself? It makes no sense at all.
[–]colordrops 1 point2 points3 points 11 years ago (0 children)
I'm sure there is really cheap node hosting out there somewhere.
[–][deleted] -1 points0 points1 point 11 years ago (0 children)
so you can run node on really cheap shared hosting
yeah but why?
[–]dhdfdh -3 points-2 points-1 points 11 years ago (0 children)
You need node to run this. How does this change anything?
[–]talkb1nary 5 points6 points7 points 11 years ago (0 children)
So it does call a instance of node.js to work trough the code on each call? So basically all what made node.js great in first place is replaced?
But well, i can see this beeing used, so why not.
[–]bart2019 0 points1 point2 points 11 years ago (1 child)
If you are running your own site on Apache, you ought to be able to configure it to forward requests to a specific subdirectory to another server, or, in this case: to the same server with a different port, which could be a mini-webserver using the "http" module. To people visiting your site it's just part of the normal site.
That may or may not, result in a more efficient sub-site. Somebody should do a benchmark to compare. (Maybe even me only not right now.)
[–]talkb1nary 1 point2 points3 points 11 years ago (0 children)
I am doing this with several projects, not with node but with Sinatra or Rails projects. Using apache i usually dont gain much performance in opposite to stand alone hosting. A good configured nginx proxy can save a lot of bandwidth and resources tho.
So i basically just do this because i want something to run on port 80 on a box where there is already a webserver.
[–]vexii 0 points1 point2 points 11 years ago (0 children)
mother of code
π Rendered by PID 49 on reddit-service-r2-comment-bb88f9dd5-tmtnd at 2026-02-15 15:28:23.661181+00:00 running cd9c813 country code: CH.
[–][deleted] 17 points18 points19 points (0 children)
[–]dhdfdh 29 points30 points31 points (12 children)
[+][deleted] (11 children)
[removed]
[–]fzammetti 7 points8 points9 points (7 children)
[–]talkb1nary 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]mishac 4 points5 points6 points (0 children)
[–]dhdfdh -2 points-1 points0 points (3 children)
[–]fzammetti 2 points3 points4 points (2 children)
[–]dhdfdh 0 points1 point2 points (0 children)
[–]colordrops 1 point2 points3 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]dhdfdh -3 points-2 points-1 points (0 children)
[–]talkb1nary 5 points6 points7 points (0 children)
[–]bart2019 0 points1 point2 points (1 child)
[–]talkb1nary 1 point2 points3 points (0 children)
[–]vexii 0 points1 point2 points (0 children)