WebDAV accessible only locally; not from internet!

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

In the vhost.conf, seahub section should be the last one. Then it works fine.

Kind of : URL rewrite issue. sf.domain.tld/seafdav turns in to sf.domain.tldseafdav

What version of the Seafile server are you running?

I am running 6.1.2 64bit. Why?

I was just comparing notes on WebDAV and 6.2.0 from the post here: Seafile server 6.2.0 beta is ready for testing! .

-Thanks!

Interesting. See this: URL rewrite issue. sf.domain.tld/seafdav turns in to sf.domain.tldseafdav