1 / 5

Run nodejs application on port 80

How to run nodejs application at port 80

anto
Download Presentation

Run nodejs application on port 80

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Run Nodejs Application Run Nodejs Application on port 80 on port 80 Credits: https://github.com/kentbrew

  2. Run node js app with admin privileges SUDO Warning this is not the safest method Running web apps with Admin privileges is frowned up on. Anyway : here you go sudo node myapp.js A better method on the next slide

  3. IP TABLE IP TABLE MORE SCARY pain in the a (But more safe)

  4. Run sudo iptables -t nat -L Shows current iptable Rules. Check if any rules with port 80 is defined. If not add new rule by running: sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8888 --dport value shows the port to which the connections should be received by OS --to-ports value shows where the communication should be redirected to. ie, myapp.js running port.

  5. Credits : https://github.com/kentbrew

More Related