slwl
V2EX  ›  服务器

FRP 服务器能够同时和 NEXTCLOUD 共存?

  •  
  •   slwl · Mar 7, 2019 · 4877 views
    This topic created in 2643 days ago, the information mentioned may be changed or developed.
    服务器上装了 FRP 服务端,给 NAS 用的,然后还想在服务器上弄个 nextcloud 放点小文件,单独用,要怎么解决 80 端口问题呢?
    frp 的 http 服务用了 80 端口,然后域名用了 nas.xxxx.com ,想用 www.xxxx.com 给 nextcloud 服务用
    3 replies    2019-03-17 11:20:55 +08:00
    moonrailgun
        1
    moonrailgun  
    PRO
       Mar 7, 2019
    nginx 了解一下
    baobao1270
        2
    baobao1270  
       Mar 8, 2019 via Android
    frp server 绑 80 端口,apache 监听 127.0.0.1:8080,服务器上运营 frp client,80-8080>
    没用过 nextcloud,不知道这样行不行
    mostkia
        3
    mostkia  
       Mar 17, 2019
    首先把 frp 的 web 服务端口从 80 换掉,然后安装 nginx,让 nginx 统一管理 80 端口,最好是你有域名。
    以域名 aaa.com 为例,以下是详细步骤:
    首先,nginx 里面创建一个服务器,用于给 nextcloud,分配域名,比如 next.aaa.com 绑定你的 nextcloud 服务。
    回到 frp 服务,同理,nginx 里面再开一个服务器,绑定一个域名比如 frp.aaa.com 。假如 frp 端口已从 80 改成了 800 端口。那么,接下来就可以使用 nginx 的反向代理,直接代理 800 端口的所有流量到你的这个新开的服务器上即可。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3333 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 10:54 · PVG 18:54 · LAX 03:54 · JFK 06:54
    ♥ Do have faith in what you're doing.