首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在本地域访问etherpad?

如何在本地域访问etherpad?
EN

Server Fault用户
提问于 2021-04-12 10:59:51
回答 1查看 258关注 0票数 0

所以我在我们服务器上的一个(Ubuntu20.04) VM上安装了Etherpad-Lite。

我还安装了Nginx并设置了下面的vhost。

在我的站点中,有两个条目:默认值和etherpad.conf

这是我的etherpad.conf

代码语言:javascript
复制
upstream etherpad {
   server localhost:9001;
   keepalive 32;
}

server {
   listen 80;
   server_name example.etherpad.at;

   location / {
       client_max_body_size 50M;
       proxy_set_header X-Real-IP $remote_addr;
       proxy_http_version 1.1;
       proxy_pass http://etherpad;
   }
}

这是我的Etherpad的settings.json (ip设置为127.0.0.1)

代码语言:javascript
复制
   * IP and port which Etherpad should bind at.
   *
   * Binding to a Unix socket is also supported: just use an empty string for
   * the ip, and put the full path to the socket in the port parameter.
   *
   * EXAMPLE USING UNIX SOCKET:
   *    "ip": "",                             // <-- has to be an empty string
   *    "port" : "/somepath/etherpad.socket", // <-- path to a Unix socket
   */
  "ip": "127.0.0.1",
  "port": 9001,

我还在我的主机文件和防火墙中添加了一个DNS条目,只是为了测试目的。

但是当我进入域名或IP时,我会得到一个“这个网站不是reachable.....right dns...proxy.”

当我将etherpad的ip设置为其他东西时,我总是会得到:错误:听EADDRNOTAVAIL

我做错什么了?

EN

回答 1

Server Fault用户

回答已采纳

发布于 2021-04-26 06:10:49

所以很明显,我所有的配置都是正确的,但只有在重新安装之后,它才起作用。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1060111

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档