Я только что развернул сервер Seafile на моем домашнем сервере. Развертывание seafile прошло успешно, и я не получил никаких ошибок. Поэтому я попытался настроить nginx.
Мой конфиг nginx:
server {
        root         /var/www/mydomain;
        index        index.html;
        server_name  mydomain.de
        return       301 mydomain.de$request_uri;
}
server {
        root         /var/www/mydomain;
        index        index.html;
        server_name  http://www.mydomain.de;
}
server {
    listen 80;
    server_name www.cloud.mydomain.de;
    proxy_set_header X-Forwarded-For $remote_addr;
    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   REMOTE_ADDR         $remote_addr;
        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;
    }
    location /media {
        root /home/myuser/seafile/seafile-server-latest/seahub;
    }
}
мой ccnet.conf:
SERVICE_URL = http://www.cloud.mydomain.de
seahub_settings.py (последняя строка):
FILE_SERVER_ROOT = 'http://www.cloud.mydomain.de/seafhttp'
Первые два серверных блока работают нормально и как положено. Но когда я пытаюсь посетить www.cloud.mydomain.de, я просто получаю пустую страницу (перенаправить на www.cloud.mydomain.de/defaultsite)
http://www.cloud.mydomain.de/ => redirect to /defaultsite (cause of domain hoster?) and blank page
http://www.cloud.mydomain.de/seafhttp => blank page
http://www.cloud.mydomain.de/media => blank page
Хотя я убедился, что сервер seafile запущен:
./seafile.sh start
./seahub.sh start-fastcgi
Любые предложения, которые могли бы решить мою проблему?
