Question

I searched a lot and found out that node.js does not work on apache.

Is there any other alternatives for that?

Main idea behind this is use of server-side javascript on Apache.

Thanks.

Était-ce utile?

La solution

node.js is a webserver. It listens on a port, accepts incoming request, and serves responses. Apache is a webserver as well. It listens on a port, accepts incoming requests, but depending on the handlers available may send the request to php, perl, or any cgi to render an output.

What you can do, though, is have node.js listen to port 8081, or anything else, and have Apache listen on port 80. Incoming requests on http (port 80) can be proxied to the node.js port.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top