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 *:443>
	ServerName my.domain.tld
	ServerAdmin my@email.tld

	Protocols h2 http:/1.1

	<Proxy *>
		Order deny,allow
		Allow from all

	<Location /seafdav>
		ProxyPass ""

	ProxyRequests Off
	ProxyPreserveHost On
	ProxyTimeout 90

	ProxyPass /
	ProxyPassReverse /

	ProxyPass /seafhttp
	ProxyPassReverse /seafhttp
	RewriteRule ^/seafhttp/ - [QSA,L]

	ProxyPass /seafdav
	ProxyPassReverse /seafdav

	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