Seafile Pro and redirecting via Apache VHOST

@tomservo It is weird. So I decided to remove the Apache VHOST server out of the mix. I forward everything on 80 443 (even though I’m not using it yet) and 8000 directly to the IP of the seafile server. It does not resolve just a blank page.

I’m going to reinstall ubuntu server 24 then Apache and I’ll test to see if it answers. If it does then I’m obviously doing something wrong or I’m following the wrong directions.

Just got done and YEP Apache works like a charm all my DNS names resolve where is if I just install docker and seafile nothing works right - its hit or miss

Which directions for CE should I be using

OK I’m pretty sure its the Apache VHOST server not reverse proxying correctly (Most likely I used the wrong redirect)

If I remove the Apache VHOST seafile works as it should when I add it it tells me my certs are too old - Go Figure *I think docker picked up new certs for me NOT SURE HOW)

I wonder if I can do the VHOST thing on the seafile server

I had a lot of trouble with mysql on my test setup, but I finally did get a test seafile set up with apache as the reverse proxy.

I had a strange problem where uploads would work for the first about 100K, and then just get stuck. Also most downloads would work, but some would get stuck. Commenting out the section for /seafhttp seems to have fixed that (but I don’t really understand why). My apache config ended up looking like this:

<VirtualHost *:443>
    ServerName seafile.my-domain.com
               SSLEngine on
               SSLCertificateFile /root/cert/cert10.pem
               SSLCertificateKeyFile /root/cert/priv.key
               SSLCertificateChainFile /root/cert/chain.crt
    DocumentRoot /var/www

    AllowEncodedSlashes On

    RewriteEngine On

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

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

    #
    # seahub
    #
    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
    ProxyPreserveHost On
    ProxyPass / http://192.168.69.5:8080/
    ProxyPassReverse / http://192.168.69.5:8080/
</VirtualHost>

One thing to be aware of. I couldn’t use port 80 on the server running the docker container so I have port 8080 forwarding to the seafile server container’s port 80.

    ports:
      - "8080:80"