Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
litespeed_wiki:nodejs_setup [2014/08/06 21:35]
Michael Armstrong
litespeed_wiki:nodejs_setup [2014/08/07 15:09]
Michael Armstrong [If Using LSWS Below 4.2.13 or Proxying to an External Server]
Line 3: Line 3:
 Node.js is a platform that generally runs as a separate web server. LiteSpeed Web Server can be configured to proxy traffic to Node.js so that users can run Node.js applications (like Ghost) on their sites. Node.js is a platform that generally runs as a separate web server. LiteSpeed Web Server can be configured to proxy traffic to Node.js so that users can run Node.js applications (like Ghost) on their sites.
  
-The following wiki guides you through the steps to set up Node.js with LiteSpeed Web Server. The wiki assumes that you have a functional LSWS installation running off of Apache configurations (though the steps can be easily adapted to using LSWS native configuration files).+The following wiki guides you through the steps to set up Node.js with LiteSpeed Web Server. The wiki assumes that you have a functional LSWS installation running off of Apache configurations (though the steps can be easily adapted to using LSWS-native configuration files).
  
 ===== Install Node.js ===== ===== Install Node.js =====
Line 22: Line 22:
   make install   make install
  
-===== Add Your Node.js ​Files =====+===== Add Your Node.js ​Application ​=====
  
 For the rest of this wiki, we will be using the example Node.js web server ''​example.js''​ found on [[http://​nodejs.org/​|Node.js'​s homepage]]. This web server runs on port 1337 and responds with "Hello World" to every request. For the rest of this wiki, we will be using the example Node.js web server ''​example.js''​ found on [[http://​nodejs.org/​|Node.js'​s homepage]]. This web server runs on port 1337 and responds with "Hello World" to every request.
Line 51: Line 51:
 {{litespeed_wiki:​config_proxy_extapp.png?​700}} {{litespeed_wiki:​config_proxy_extapp.png?​700}}
  
-In the above configurations we have made the Location 1.2.3.4:50000. It is important that the Location match the IP (127.0.0.1 if it is on the same server) and port Node.js is running on.+In the above configurations we have made the Location 1.2.3.4:1337. It is important that the Location match the IP (127.0.0.1 if it is on the same server) and port your Node.js ​application ​is running on.
  
-After saving the configurations,​ restart LSWS to save changes. Your traffic should be redirected to Node.js now.+After saving the configurations,​ restart LSWS to save changes. Your traffic should be redirected to your Node.js ​application ​now.
  
 ===== Notes ===== ===== Notes =====
  
   * If you encounter errors using Node.js, please make sure that Node.js is started and running when using it.   * If you encounter errors using Node.js, please make sure that Node.js is started and running when using it.