Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:nodejs_setup [2014/08/07 14:55] Michael Armstrong [Setting Up Node.js] |
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 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. |