Score:0

Seafile fileserver url ip exposed - ssl certificate fails

gb flag

I have a Seafile server installation on a server machine. I have also purchased a domain name for the server, and issued a certificate for it. Seafile is served using Apache 2.

The main Seafile site is working fine, the domain name stays in the url bar as I browse it, and the certitificate is in effect. However, when I try to access the seafile fileserver, e.g. by trying to download a file from the browser, the domain name no longer appears and the ip of my server is exposed there instead, while getting a warning about the certificate not being valid, since the name in the url (the server ip) does not match the domain name the certificate is for.

Similarly, since the Seafile client also accesses the Seafile fileserver, it also throws a warning about an invalid certificate.

I suspect it is due to a slip in my Apache configuration. Below is my configuration file for anyone wanting to make sense of it and possibly discover what I have done wrong.

Domain is changed to "example.com".

<IfModule mod_ssl.c>
  <VirtualHost _default_:443>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www/html

   # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
   # error, crit, alert, emerg.
   # It is also possible to configure the loglevel for particular
   # modules, e.g.
   #LogLevel info ssl:warn

   ErrorLog ${APACHE_LOG_DIR}/error.log
   CustomLog ${APACHE_LOG_DIR}/access.log combined

    #   SSL Engine Switch:
    #   Enable/Disable SSL for this virtual host.
    SSLEngine on

    SSLCertificateFile    /etc/letsencrypt/live/example.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem

    Alias /media  /home/debian/seafile/seafile-server-latest/seahub/media
    <Location /media>
        Require all granted
    </Location>

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

    # seahub web interface
    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
    ProxyPass / http://127.0.0.1:8000/
    ProxyPassReverse / http://127.0.0.1:8000/
   </VirtualHost>
</IfModule>

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.