Ubuntu服务器 - 端口转发

时间:2016-06-14 11:26:11

标签: port iptables portforwarding ubuntu-server

我需要将http端口80重定向到具有特定页面的端口,该页面在端口9090/somepage上运行。

简而言之:

需要重定向x.x.x.x:80 -> x.x.x.x:9090/page

我试图通过命令iptable来做,但我无法将端口重定向到特定端口和页面(仅端口到另一个端口)。

请问我怎么能意识到这一点?

1 个答案:

答案 0 :(得分:0)

您可能需要在虚拟主机中使用proxypass来重定向它。对于Apache:

https://httpd.apache.org/docs/current/mod/mod_proxy.html

相关问题