V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
83f420984
V2EX  ›  问与答

frp 如何使用 http 穿透多个 Web 服务?

  •  
  •   83f420984 · Mar 16, 2024 · 1421 views
    This topic created in 785 days ago, the information mentioned may be changed or developed.

    frps.toml

    bindPort = 7000
    
    vhostHTTPPort = 8000
    

    frpc.toml

    serverAddr = "a.jd.xyz"
    serverPort = 7000
    
    
    [[proxies]]
    name = "jellyfin"
    type = "http"
    localPort = 8096
    customDomains = ["b.jd.xyz"]
    
    [[proxies]]
    name = "alist"
    type = "http"
    localPort = 5244
    customDomains = ["c.jd.xyz"]
    

    配置完成后 alist 不生效,网上找了一圈,说是要配置 nginx ?

    3 replies    2024-03-18 13:35:59 +08:00
    PhDLuffy
        1
    PhDLuffy  
       Mar 17, 2024
    子域名全部需要设置解析 ip
    83f420984
        2
    83f420984  
    OP
       Mar 17, 2024 via iPhone
    @PhDLuffy 改成 tcp 就行了
    PhDLuffy
        3
    PhDLuffy  
       Mar 18, 2024   ❤️ 1
    @83f420984 tcp 只能用主域名吧+端口号

    http 可以用子域名默认 80 和 443 端口
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2971 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:33 · PVG 14:33 · LAX 23:33 · JFK 02:33
    ♥ Do have faith in what you're doing.