求助:分享链接无法打开


#1

分享链接如下:如下图所示无法打开,其他功能都正常,上传下载、客户端都好用。
http://172.16.1.91:8000/f/5724690bfb504b7f99b5/
2020-05-08_085722

系统是centos 7.6.1810,环境是MariaDB、nginx
怀疑是nginx代理出错,网上查了很多资料,问了一些人都无法解决,特来此一问,万分感谢有空的人看看。
贴下配置
目录/usr/local/nginx/conf/nginx.conf

引用
#user nobody;
worker_processes 1;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;

sendfile        on;        
keepalive_timeout  65;                                                                                                    
                                                                                                                                               
server {                                                              
    server_name 172.16.1.91;                                          
    proxy_set_header X-Forwarded-For $remote_addr;                    
    listen       80;                                                                                                                           
                                                                                                                                               
    location / {                                                      
        #root   html;                                                 
        #index  index.html index.htm;                                 
                                                                      
        proxy_pass         http://127.0.0.1:8000;                     
        proxy_set_header   Host $host;                                
        proxy_set_header   X-Real-IP $remote_addr;                    
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Host $server_name;             
        proxy_read_timeout  1200s;    
        #used for view/edit office file via Office Online Server                                                  
        client_max_body_size 0;                                       
                                                                      
        access_log      /usr/local/nginx/logs/seahub.access.log;      
        error_log       /usr/local/nginx/logs/seahub.error.log;       
                                                                      
    }                                                                 
                                                                      
    location /seafhttp {                                              
        rewrite ^/seafhttp(.*)$ $1 break;                             
        proxy_pass http://127.0.0.1:8082;                             
                                                                      
        client_max_body_size 0;                                       
        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;                                         
        proxy_request_buffering off;                                  
    }                                                                 
                                                                                                                                              
    location ~ .*\.(js|css|jpg|png)$ {                                
        proxy_pass http://127.0.0.1:8000;                             
    }          
    location /media {                                                                                                        
        rewrite ^/media(.*)$ $1 break;                        
        # seafile 与 nginx部署在一台机器上时需要取消注释                      
        root /home/seafile/seafile-server-latest/seahub;      
        # seafile 与 nginx部署在一台机器上时使用该配置                       
    }                                                         
                                                              
    #error_page  404              /404.html;                                                                                  
    # redirect server error pages to the static page /50x.html
    error_page   500 502 503 504  /50x.html;                  
    location = /50x.html {                                    
        root   html;                                          
    }

引用


#2

防火墙也放通80,8000,8082端口了,部署seafile 社区版 作为内网使用,不上公网;
通过链接http://172.16.1.91/可以访问首页,加上端口就不行http://172.16.1.91:8000,求解答,谢谢


#3

手动部署踩过多次坑的小白表示,还是走docker部署吧


#4

或者你看看系统设置里 url这一项有没有填写正确


#5

系统设置也是对的 :rofl:


#6

改用docker部署吧,迁移也方便