Seafile Probleme mit https

Heute ist Stammtischzeit:
Jeden Donnerstag 20:30 Uhr hier im Chat.
Wer Lust hat, kann sich gerne beteiligen. ;)
  • Hallo Zusammen,


    ich habe mir kürzlich einen Raspberry angeschafft um Seafile mit SSL zu installieren.

    Ohne SSL funktioniert alles, nur mit SSL ist der Server nicht erreichbar.
    Ich habe mich ziemlich exakt an diese Anleitung gehalten.
    Muss ich vielleicht nginx neu kompilieren oder so?
    Ich wäre über Tipps sehr dankbar.

    Gruß,
    korbi

  • Ich hoffe diese config meinst du. :blush: Vielen Dank für die Hilfe schonmal.

    LG

    server {
    listen 80;
    server_name xxxx;
    rewrite ^/(.*) https://%24server_name/%241 permanent; # force redirect http to https
    }


    server {
    listen 8001;
    ssl on;
    ssl_certificate /etc/nginx/ssl/seahub.crt;
    ssl_certificate_key /etc/nginx/ssl/seahub.key;
    server_name xxxx;
    error_page 497 https://$host:$server_port$request_uri;

    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;

    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;
    }

    location /media {
    root /home/seafile/seafile-server/seahub;
    }
    }

  • Hast du beim Telnet den Port 8001 mit angegeben? Weil das sieht man nicht so klar in Deinem Post.

    Alle Befehle sind mit #> markiert und müssen auf dem PI mal abgefeuert werden.

    Code
    #> sudo apt-get install telnet
    Code
    #> ps fauxww | grep nginx
    root      8300  0.0  0.1   3876   852 pts/0    S+   21:35   0:00                          \_ grep nginx
    root      7076  0.0  0.2  11536  1100 ?        Ss   Mai04   0:00 nginx: master process /usr/sbin/nginx
    www-data  7077  0.0  0.3  11696  1700 ?        S    Mai04   0:00  \_ nginx: worker process
    www-data  7078  0.0  0.3  11696  1440 ?        S    Mai04   0:34  \_ nginx: worker process
    www-data  7079  0.0  0.3  11696  1440 ?        S    Mai04   0:34  \_ nginx: worker process
    www-data  7080  0.0  0.3  11696  1440 ?        S    Mai04   0:34  \_ nginx: worker process
    Code
    #> netstat -ntl
    Aktive Internetverbindungen (Nur Server)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:3128            0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
    tcp6       0      0 :::53                   :::*                    LISTEN
    tcp6       0      0 :::22                   :::*                    LISTEN
    Code
    #> telnet localhost 8001

    Für die 4 Befehle mal aus und Poste die Zeilen inkl. Befehl hier rein. So das wir sehen was Du an Befehle + Parameter eingegeben hast und was von den Programmen dazu ausgespuckt wurde.

  • Zitat

    ps fauxww | grep nginx
    pi 4028 0.0 0.1 4144 840 pts/0 S+ 21:53 0:00 \_ grep --color=auto nginx

    Zitat

    telnet localhost 8001
    Trying 127.0.0.1...
    Trying ::1...
    telnet: Unable to connect to remote host: Address family not supported by protocol

  • Ok, der nginx läuft gar nicht.

    Code
    root@ro02 :) ~ # /etc/init.d/nginx restart
    Restarting nginx: nginx.
    root@ro02 :) ~ #

    Wenn das "Restarting nginx: nginx." nicht ausgegeben wird ist an der Config vom nginx irgend etwas kaputt. Dann einfach direkt starten und die Ausgabe könnte so aussehen:

    Code
    root@ro02 :) ~ # nginx
    nginx: [emerg] unknown directive "ttp" in /etc/nginx/nginx.conf:10
    root@ro02 :( ~ #

    Wenn er normal startet dann noch mal mit netstat gucken ob er jetzt auf den Port lauscht.

    Sollte ungefähr so aussehen.

    Code
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      8789/nginx
    tcp        0      0 0.0.0.0:8001           0.0.0.0:*               LISTEN      8789/nginx

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!