An Apache Virtual Hosts File for Seafile Reverse Proxy¶
I like Seafile but the lack of documentation and support is very evident. A common issue is uploading and downloading files doesn’t work. My issue was with my Apache configuration file allowing me to use my custom domain. This what I use and it works. I hope it helps someone because I struggled for many hours trying to solve this.
<VirtualHost *:80> ServerName my.domain.tld Redirect / https://my.domain.tld </VirtualHost> <VirtualHost *:443> ServerName my.domain.tld ServerAdmin email@example.com Protocols h2 http:/1.1 <Proxy *> Order deny,allow Allow from all </Proxy> <Location /seafdav> ProxyPass "http://127.0.0.1:8080/seafdav" </Location> ProxyRequests Off ProxyPreserveHost On ProxyTimeout 90 ProxyPass / http://127.0.0.1:8000/ ProxyPassReverse / http://127.0.0.1:8000/ ProxyPass /seafhttp http://127.0.0.1:8082 ProxyPassReverse /seafhttp http://127.0.0.1:8082 RewriteRule ^/seafhttp/ - [QSA,L] ProxyPass /seafdav http://127.0.0.1:8080 ProxyPassReverse /seafdav http://127.0.0.1:8080 SSLCertificateFile /etc/letsencrypt/live/my.domain.tld/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/my.domain.tld/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf </VirtualHost>