Everything works fine with this : webdav://localhost:[webdav port]/seafdav
But from the internet if I do this: webdav://sf.domain.tld/seafdav
I get Socket operation timed out
I am using Apache so I do not have to forward any ports or anything and since it’s working locally I think the issue is with Apache (vhost configuration)
So here’s my vhost.conf for seafile:
<VirtualHost *:80>
ServerName sf.domain.tld
ServerAlias sf.domain.tld2
DocumentRoot /var/www
Redirect permanent / https://sf.domain.tld
ErrorLog ${APACHE_LOG_DIR}/sf_error.log
CustomLog ${APACHE_LOG_DIR}/sf_access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerName sf.domain.tld
ServerAlias sf.domain.tld2
DocumentRoot /var/www
Alias /media /usr/share/seafile/[company name]/seafile-server-latest/seahub/media
RewriteEngine On
<Location /media>
Require all granted
</Location>
#
# seafile fileserver
#
ProxyPass /seafhttp http://127.0.0.1:[seafile server port]
ProxyPassReverse /seafhttp http://127.0.0.1:[seafile server port]
RewriteRule ^/seafhttp - [QSA,L]
#
# seahub
#
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
#
# WebDAV
# We use http proxy, since SeafDAV is incompatible with FCGI proxy in Apache 2.4.
#
ProxyPass /seafdav http://127.0.0.1:[webdav port]/seafdav
ProxyPassReverse /seafdav http://127.0.0.1:[webdav port]/seafdav
Include /etc/letsencrypt/SA1.conf
ErrorLog ${APACHE_LOG_DIR}/sf_ssl_error.log
CustomLog ${APACHE_LOG_DIR}/sf_ssl_access.log combined
</VirtualHost>
My seafdav.conf
[WEBDAV]
enabled = true
port = [webdav port]
fastcgi = false
share_name = /seafdav