Hey guys,
I want to test seafile.
I have installed seafile with ssh and configured it without error messages, but I can't open the website. I'm using port 8231 and 8000 for seafile. When I restart nginx, I don't have any error messages.
I think it's a problem with nginx to open or forward the port to the correct folder of seafile.
Have you any ideas or solutions?
(Sorry for my bad English)
EDIT: I updated some files again and have now an 502 error..
/etc/nginx/conf.d/seafile.conf
Code
server {
listen 8230;
server_name mydnsdomain.com;
rewrite ^/(.*) https://$server_name/$1 permanent;
}
server {
listen 8231; #IPv4
#listen [::]:443; # IPv6
ssl on;
ssl_certificate /etc/ssl/certs/openmediavault-***.crt;
ssl_certificate_key /etc/ssl/private/openmediavault-***.key;
server_name mydnsdomain.com;
location / {
fastcgi_pass 127.0.0.1:8000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param HTTPS on;
fastcgi_param HTTP_SCHEME https;
}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://127.0.0.1:8082;
client_max_body_size 0;
}
location /media {
root /home/seafile/seafile/seafile-server-5.0.4/seahub;
}
}
Alles anzeigen