Up-/download fails

I have an Seafileserver with Apache, Mysql and https (let’s encrypt)
The Seafile run on Ubuntu-Server 16.04.
The Seafile-Client on Ubuntu and Windows works good.

But i can’t download any files from the Webinterface. Upload to the Webinterface are working.
From the Android App i can’t download oder Upload. When i click on a Link in the webinterface redirect the link to a wrong url.
I have the port 80 and 443 open to cal seafile from outside.

https://cloud.***.ch/lib/419e4a83-1abe-4b51-8a94-aaccfd78648e/file/%20https://cloud.***.ch/seafhttp/files/c905b8c7-831d-4781-ba89-61a4c9080d1c/PoGo%20Daten.txt

ccnet.conf

[General]
USER_NAME = seafileCloud
ID = ***
NAME = seafileCloud
SERVICE_URL = https://cloud.***.ch

[Client]
PORT = 13419

[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = seafile
PASSWD = ***
DB = ccnet-db
CONNECTION_CHARSET = utf8

virtualhost for Remote

<VirtualHost *:80>
  ServerName cloud.***.ch

  RewriteEngine on
  RewriteCond %{SERVER_NAME} =cloud.***.ch
  RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]

</VirtualHost>



<VirtualHost *:443>
  ServerName cloud.***.ch
  DocumentRoot /var/www/html

  SSLEngine On
 # SSLCertificateFile /home/neon/seafile/cacert.pem
 # SSLCertificateKeyFile /home/neon/seafile/privkey.pem

  SSLCertificateFile /etc/letsencrypt/live/cloud.***.ch/fullchain.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/cloud.***.ch/privkey.pem

  Alias /media  /home/neon/seafile/seafile-server-latest/seahub/media

  <Location /media>
    ProxyPass !
    Require all granted
  </Location>

  RewriteEngine On

  #
  # seafile fileserver
  #
  ProxyPass /seafhttp http://127.0.0.1:8082
  ProxyPassReverse /seafhttp http://127.0.0.1:8082
  RewriteRule ^/seafhttp - [QSA,L]

  #
  # seahub
  #
  SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
  SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
  ProxyPass / fcgi://127.0.0.1:8000/
</VirtualHost>

Virtualhost for Local use

<VirtualHost *:80>
    ServerName 192.168.168.200
    # Use "DocumentRoot /var/www/html" for Centos/Fedora
    # Use "DocumentRoot /var/www" for Ubuntu/Debian
    DocumentRoot /var/www
    Alias /media  /home/neon/seafile/seafile-server-latest/seahub/media

    RewriteEngine On

    <Location /media>
        Require all granted
    </Location>

    #
    # seafile fileserver
    #
    ProxyPass /seafhttp http://127.0.0.1:8082
    ProxyPassReverse /seafhttp http://127.0.0.1:8082
    RewriteRule ^/seafhttp - [QSA,L]

    #
    # seahub
    #
    SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
    ProxyPass / fcgi://127.0.0.1:8000/
</VirtualHost>

seahub_settings.py

SECRET_KEY = "***"

FILE_SERVER_ROOT = ' https://cloud.***.ch/seafhttp'
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'seahub-db',
        'USER': 'seafile',
        'PASSWORD': '***',
        'HOST': '127.0.0.1',
        'PORT': '3306'
    }
}

seafile.conf

[fileserver]
port = 8082

[database]
type = mysql
host = 127.0.0.1
port = 3306
user = seafile
password = ***
db_name = seafile-db
connection_charset = utf8

Whats wrong?

443 ? as your apache’s config file is:

<VirtualHost *:443>
  ServerName cloud.***.ch
  DocumentRoot /var/www/html

sorry i mean 443.
And local it don’t works too

try remove the blank on the left of https and restart

Thank you so much!!!

OMG…
I’m so stupid^

Now work the download and upload in webinterface and android.

I search many hours for that problem…:expressionless: