How can I forward requests coming in on port 80 to another port on the same linux machine?
I used to do this by changing nat.conf, but this machine that I'm using doesn't have NAT. What's the alternative?
Thanks,
Nohsib
|
How can I forward requests coming in on port 80 to another port on the same linux machine? I used to do this by changing nat.conf, but this machine that I'm using doesn't have NAT. What's the alternative? Thanks, Nohsib | |||||
feedback
|
This question came from our site for professional and enthusiast programmers.
|
You can accomplish the redirection with iptables:
| ||||
|
feedback
|
|
You should look at using a reverse proxy, such as Nginx... e.g. put this in your nginx.conf file:
| |||
|
feedback
|