
因此,我在服务器上的 (Ubuntu 20.04) VM 上安装了 Etherpad-Lite。
我还安装了 Nginx 并设置了以下虚拟主机。
在我的 sites-available 中有 2 个条目:default 和 etherpad.conf
这是我的etherpad.conf
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;
}
}
这是我的设置.json对于 Etherpad(ip 设置为 127.0.0.1)
* 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 时,我得到一个“此网站无法访问.....正确的 DNS...代理...)
当我将 etherpad 的 IP 设置为其他值时,我总是得到:
错误:监听 EADDRNOTAVAIL
我究竟做错了什么?
答案1
所以显然我已经正确配置了一切但只有在重新安装后它才能起作用。