本地服务器多IP

您好,
我是新手。我想在具有多个 IP 的本地 Ubuntu 20 服务器上进行安装。
我想安装在 1 个 IP 上,而不是根 IP。我的问题是,我应该安装在 /var/discourse 吗?还是像 IP 的 apache2 文件中所说的根目录,即 → Document Root /home/$User/web/$IPaddess/public_html/?

1 个赞

您像平常一样安装在 /var/discourse

并确保 Apache2 不绑定到 Discourse IP,

并且 Discourse Docker/nginx 不绑定到 Apache2 所在的“根”IP。

5 个赞

谢谢 :smiley:
我本来就是这么想的,但不太确定 :thinking:

2 个赞

你好,
我刚试着安装它。但它不喜欢 Apache :slightly_frowning_face: 所以,我的问题是,在基础代码的什么地方可以更改监听端口,例如从 80 改为 88?如果可能的话,我可以从一个 Fork 中 git :thinking:

1 个赞

嗨 Sid,

您可能想阅读 Set up Discourse on a server with existing Apache sites :slight_smile:

1 个赞

谢谢 :smiley:
我会看一下。

1 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.