【问题标题】:Ubuntu server - port forwardingUbuntu 服务器 - 端口转发
【发布时间】:2016-06-14 11:26:11
【问题描述】:

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

简而言之:

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

我尝试通过命令iptable 进行操作,但我无法将端口重定向到特定端口和页面(仅端口到另一个端口)。

请问我是怎么实现的?

【问题讨论】:

    标签: port iptables portforwarding ubuntu-server


    【解决方案1】:

    您可能需要虚拟主机中的 proxypass 来重定向它。对于阿帕奇:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-02-05
      • 2020-11-04
      • 2020-01-22
      • 1970-01-01
      • 2012-11-14
      • 1970-01-01
      • 2014-08-29
      • 1970-01-01
      相关资源
      最近更新 更多