在内网搭建seafile windows服务器后,用反向代理将8000和8082两端口映射到外网,每个端口映射一个子域名,如:seaf1和seaf2,将SERVICE_URL设置为:http://seaf1.xiaomiqiu.com,将FILE_SERVER_ROOT设置为http://seaf2.xiaomiqiu.com,而后在外网,网页端可以正常上传下载文件,windows客户端也可以正常上传下载文件,但同步资料库时,会说无法连接到服务器
查看日志,发现:
[09/06/18 21:28:09] http-tx-mgr.c(792): libcurl failed to GET http://***.xiaomiqiu.com:8082/protocol-version: Couldn’t connect to server.
[09/06/18 21:28:19] clone-mgr.c(730): Transition clone state for 5397554b from [canceled] to [error]: check server.
[09/06/18 21:28:22] clone-mgr.c(713): Transition clone state for 6d860d77 from [error] to [check server].
[09/06/18 21:28:22] clone-mgr.c(713): Transition clone state for 5397554b from [error] to [check server].
[09/06/18 21:28:22] http-tx-mgr.c(1257): Bad response code for GET http://***.xiaomiqiu.com/seafhttp/protocol-version: 404.
[09/06/18 21:28:22] http-tx-mgr.c(1257): Bad response code for GET http://***.xiaomiqiu.com/seafhttp/protocol-version: 404.