V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Gabrielle70
V2EX  ›  程序员

Azure VM 大佬请进: 如何把 localhost 的 API 连到外网 ip

  •  
  •   Gabrielle70 · Apr 1, 2024 · 1597 views
    This topic created in 759 days ago, the information mentioned may be changed or developed.

    应客户需求, 我用 docker 部署了 nodejs 的 api 到 Azure windows server 2022, 现在运行在 localhost:3500 上.

    需要把该 api 从 localhost 连到外网 ip.

    请问大佬如何处理. 反向代理用 IIS 还是 Ngnix?

    多谢

    daimaosix
        1
    daimaosix  
       Apr 1, 2024 via Android
    Win 那就 iis 咯
    Gabrielle70
        2
    Gabrielle70  
    OP
       Apr 1, 2024
    谢谢
    hez2010
        3
    hez2010  
       Apr 2, 2024
    搜索 IIS 的 ARR 和 URL Rewrite 插件装上,然后就能配置反向代理了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   835 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:13 · PVG 05:13 · LAX 14:13 · JFK 17:13
    ♥ Do have faith in what you're doing.