Hey everybody,
I just got an confusing error.
I’m using Seafile 6.2.2 on my VPS running 64 Bit Ubuntu 16.04 with Pleks Onyx 17.5.3 and since round about 2 weeks my nginx redirect isn’t working properly. Everytime I try to access the Webinterface on https://example.com/cloud I just get an 404 BUT when i access for example https://example.com/clouda, whyever I should do this, I get to an error page saying that the requested page couldn’t be found - the error page is displayed by seahub.
Because of that I can’t access the Library within the desktop application - well that actually makes sense…
My nginx config within plesk:
server_tokens off;
location /cloud {
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}
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;
access_log /var/log/nginx/seahub.access.log;
error_log /var/log/nginx/seahub.error.log;
}
location /seafhttp {
rewrite ^/seafhttp(.)$ $1 break;
proxy_pass http://127.0.0.1:8082;
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
send_timeout 36000s;
proxy_request_buffering off;
}
location /seafmedia {
rewrite ^/seafmedia(.)$ /media$1 break;
root /opt/seafile/seafile-server-latest/seahub;
}
My ccnet.conf:
[General]
USER_NAME = Name
ID = myID
NAME = Name
SERVICE_URL = https://example.com/cloud/
[Client]
PORT = 13419
My seahub_settings.py
SECRET_KEY = “wellitsasecretisntit”
FILE_SERVER_ROOT = ‘https://example.com/seafhttp’
LOGIN_URL = ‘/cloud/accounts/login/’
SERVE_STATIC = False
MEDIA_URL = ‘/seafmedia/’
COMPRESS_URL = MEDIA_URL
STATIC_URL = MEDIA_URL + ‘assets/’
SITE_ROOT = ‘/cloud/’
SITE_BASE = ‘https://example.com/cloud’
SITE_NAME = ‘Name’
SITE_TITLE = ‘Name’
And finally some of my websites logs:
Error 21027#0: 144477 "/var/www/vhosts//httpdocs/cloud/api2/ping/index.html" is not found (2: No such file or directory) nginx error
Error 21027#0: 144477 "/var/www/vhosts//httpdocs/cloud/api2/account/info/index.html" is not found (2: No such file or directory) nginx error
Error 404 GET /cloud/ HTTP/1.1 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0 162 nginx SSL/TLS access
Error 21027#0: 144476 "/var/www/vhosts//httpdocs/cloud/index.html" is not found (2: No such file or directory) nginx error
Error 404 GET /cloud/api2/ping/ HTTP/1.1 Mozilla/5.0 162 nginx SSL/TLS access
Error 404 GET /cloud/api2/account/info/ HTTP/1.1 Mozilla/5.0 162 nginx SSL/TLS access
Error 21027#0: 144479 "/var/www/vhosts//httpdocs/cloud/api2/ping/index.html" is not found (2: No such file or directory) nginx error
Error 21027#0: 144479 "/var/www/vhosts//httpdocs/cloud/api2/account/info/index.html" is not found (2: No such file or directory) nginx error
Error 404 GET /cloud/api2/ping/ HTTP/1.1 Mozilla/5.0 162 nginx SSL/TLS access
Error 404 GET /cloud/api2/account/info/ HTTP/1.1 Mozilla/5.0 162 nginx SSL/TLS access
Error 21027#0: 144482 "/var/www/vhosts//httpdocs/cloud/api2/ping/index.html" is not found (2: No such file or directory) nginx error
Error 21027#0: 144482 "/var/www/vhosts//httpdocs/cloud/api2/account/info/index.html" is not found (2: No such file or directory) nginx error
Error 404 GET /cloud/api2/ping/ HTTP/1.1 Mozilla/5.0 162 nginx SSL/TLS access
Error 404 GET /cloud/api2/account/info/ HTTP/1.1 Mozilla/5.0 162 nginx SSL/TLS access
I tried some of the common fixes regarding nginx I needed to do until everything worked properly with seafile, but nothing really worked and I’m getting quite desperate about it. I hope somebody of you guys can help me!
Thanks a lot in advance!
Greetz Aimlittle