使用NGINX反向代理后。配置如下:
server {
listen 65180;
server_name aaa.bbb.com:65180;
location / {
proxy_pass http://127.0.0.1:8000;}
error_page 400 401 402 403 404 408 409 411 500 502 503 504 /0.txt;
location = /0.txt {root html;}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://127.0.0.1:8082;
client_max_body_size 0;
proxy_request_buffering off;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
send_timeout 36000s;}
location /media {
root /home/seafile/seafile-server-latest/seahub;}
使用网页登陆。上传下载均正常。页面里的配置也都是正确的。
SERVICE_URL:http://aaa.bbb.com:65180
FILE_SERVER_ROOT:http://aaa.bbb.com:65180/seafhttp
客户端使用7.0.6登录服务器的时候。发现能登录。但是无法从服务器下载文件。查看日志会有如下报错:
[03/20/20 19:59:31] http-tx-mgr.c(783): libcurl failed to GET aaa.bbb.com/seafhttp/protocol-version: Couldn’t connect to server.
[03/20/20 19:59:52] http-tx-mgr.c(783): libcurl failed to GET aaa.bbb.com:8082/protocol-version: Couldn’t connect to server.
没有去读取我配置的65180端口。请问是客户端的原因还是服务器配置错误?