jsproxy icon indicating copy to clipboard operation
jsproxy copied to clipboard

如何实现多站点搭建在同一服务器上

Open ghost opened this issue 4 years ago • 5 comments

打算把代理和论坛都放在一个服务器上 看网上的教程都说需要安装nginx,但是脚本安装的nginx好像是在jsproxy用户下的 有没有什么方法,让jsproxy使用docker安装的nginx?

非常感谢。

ghost avatar Jun 01 '20 12:06 ghost

这个 nginx 是 OpenResty 的,里面用到了 lua 功能,论坛的 nginx 也是 OpenResty 吗?

如果是的话,把相关的 conf 整合到论坛的 nginx conf 里就可以了。

SangOwen [email protected] 于2020年6月1日周一 下午8:40写道:

打算把代理和论坛都放在一个服务器上 看网上的教程都说需要安装nginx,但是脚本安装的nginx好像是在jsproxy用户下的 有没有什么方法,让jsproxy使用docker安装的nginx?

非常感谢。

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EtherDream/jsproxy/issues/268, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIF5E3BYYGYMEMXULAODF3RUOOVNANCNFSM4NPZFINA .

EtherDream avatar Jun 05 '20 03:06 EtherDream

选其中一个Nginx反代另一个就好了。当然首先要把被反代的那个的端口切到非80/444。

QChWnd avatar Jun 05 '20 06:06 QChWnd

简单来说,就是安装 OpenResty --> 安装 jsproxy --> 将 jsproxy 中的 conf 添加到 OpenResty 自带的 Nginx 的 conf 中,是吗?(我是真小白啥也不懂

------------------ Original ------------------ From: "EtherDream"<[email protected]>; Date: Fri, Jun 5, 2020 11:03 AM To: "EtherDream/jsproxy"<[email protected]>; Cc: " "<[email protected]>;"Author"<[email protected]>; Subject: Re: [EtherDream/jsproxy] 如何实现多站点搭建在同一服务器上 (#268)

这个 nginx 是 OpenResty 的,里面用到了 lua 功能,论坛的 nginx 也是 OpenResty 吗?

如果是的话,把相关的 conf 整合到论坛的 nginx conf 里就可以了。

SangOwen <[email protected]> 于2020年6月1日周一 下午8:40写道:

> 打算把代理和论坛都放在一个服务器上 看网上的教程都说需要安装nginx,但是脚本安装的nginx好像是在jsproxy用户下的 > 有没有什么方法,让jsproxy使用docker安装的nginx? > > 非常感谢。 > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/EtherDream/jsproxy/issues/268>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAIF5E3BYYGYMEMXULAODF3RUOOVNANCNFSM4NPZFINA> > . >

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ghost avatar Jun 05 '20 10:06 ghost

这个 nginx 是 OpenResty 的,里面用到了 lua 功能,论坛的 nginx 也是 OpenResty 吗? 如果是的话,把相关的 conf 整合到论坛的 nginx conf 里就可以了。 SangOwen [email protected] 于2020年6月1日周一 下午8:40写道: 打算把代理和论坛都放在一个服务器上 看网上的教程都说需要安装nginx,但是脚本安装的nginx好像是在jsproxy用户下的 有没有什么方法,让jsproxy使用docker安装的nginx? 非常感谢。 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#268>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIF5E3BYYGYMEMXULAODF3RUOOVNANCNFSM4NPZFINA .

可以和一个非OpenResty的Nginx装在一起吗???

fudingyu avatar Jun 30 '20 04:06 fudingyu

选其中一个Nginx反代另一个就好了。当然首先要把被反代的那个的端口切到非80/444。

反代之后,需要再搞给JSProxy安装一个带OpenResty的Nginx?

fudingyu avatar Jun 30 '20 04:06 fudingyu