Created
August 19, 2012 00:54
-
-
Save xaviervia/3390651 to your computer and use it in GitHub Desktop.
Nice and short: how to redirect Port 4567 into 80 in Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Because you want to run Ruby as a regular user and not as root, don't you? | |
| sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 4567 | |
| # Source: http://serverfault.com/questions/112795/how-can-i-run-a-server-on-linux-on-port-80-as-a-normal-user?answertab=votes#tab-top |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same in Mac OS X:
sudo ipfw add 100 fwd 127.0.0.1,4567 tcp from any to any 80 in