• 请不要在回答技术问题时复制粘贴 AI 生成的内容
wisetc
V2EX  ›  程序员

你们公司会为前端配服务器吗

  •  
  •   wisetc · May 17, 2019 · 2986 views
    This topic created in 2733 days ago, the information mentioned may be changed or developed.

    假设有一台服务器,只有一个端口,域名也只有一个,怎么同时部署多个服务,供外网访问,假设防火墙不能新开一个端口的话。

    10 replies  •  2019-05-17 17:56:21 +08:00
    zgcwkj
    zgcwkj
    May 17, 2019
    1
    二级域名
    LeeSeoung
    LeeSeoung
    May 17, 2019
    2
    nginx 根据 path 路由
    chniccs
    chniccs
    May 17, 2019
    3
    只能通过域名了
    opengps
    opengps
    May 17, 2019
    4
    二级域名
    前端 www.
    后端 api.
    shawshi
    shawshi
    May 17, 2019
    5
    二级域名+nginx
    dreamusername
    dreamusername
    May 17, 2019
    7
    显然是 nginx,全是顶级域名都没关系,nginx 接管端口,然后根据 server_name 自动分配路径
    turi
    turi
    May 17, 2019
    8
    1、2 楼正解
    exip
    exip
    May 17, 2019
    9
    楼上说的很全了二总结下:级域名+nginx 根据 path 路由
    exip
    exip
    May 17, 2019
    10
    楼上说的很全了总结下:二级或三级域名+nginx 根据 path 路由
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2180 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 14:23 · PVG 22:23 · LAX 06:23 · JFK 09:23
    ♥ Do have faith in what you're doing.