NodeJS By Examples

Run Apache as reverse proxy

Apache acts as reverse proxy for NodeJS.

 CITE:

In computer networks, a reverse proxy is a type of proxy server that retrieves resources on behalf of a client from one or more servers. These resources are then returned to the client as though they originated from the proxy server itself.[1] While a forward proxy acts as an intermediary for its associated clients to contact any server, a reverse proxy acts as an intermediary for its associated servers to be contacted by any client.

 

 ASSUMPTIONS

  1. Apache runs on port 80
  2. NodeJS runs on port 8080

 

INSTALL APACHE MODULES (Ubuntu 14.04)

  • #a2enmod proxy
  • #a2enmod proxy_http

 

 

 

 

 

 

 

 

 

 

 

 

 

Thanks to http://garr.me/blog/running-node-js-and-apache-together-using-mod_proxy/ .