Getting Webdav Working

Hi All,

It’s being a week I’m trying to get webdav working on a Vhost without any success… Here is my setup:

SuexecUserGroup "#1039" "#1038" ServerName dav.mydom.com DocumentRoot /home/dav/public_html ErrorLog /var/log/virtualmin/dav.mydom.com_error_log CustomLog /var/log/virtualmin/dav.mydom.com_access_log combined Options Indexes MultiViews AllowOverride None Require all granted Alias /webdav /home/dav/public_html Dav on AuthType Basic AuthBasicProvider file AuthName "WebDav" AuthUserFile /home/dav/public_html/.htpasswd Require valid-user ProxyPassMatch ^/(.*.php(/.*)?)$ fcgi://localhost:8005/home/dav/public_html/$1 RemoveHandler .php RemoveHandler .php7.0 php_admin_value engine Off

Trying to test it with cadaver, I got the message I can’t even enter my user name and pass

[matth@www ~]# cadaver http://dav.mydom.com/webdav/
Authentication required for WebDav on server `dav.mydom.com’:
Username:
Authentication aborted!
Could not open collection:
Could not authenticate to server: rejected Basic challenge
dav:/webdav/?

I have also tested by creating a .netrc pass to authenticate automatically but i good this then:

[matth@www ~]# cadaver https://dav.mydom.com/webdav
Could not access /webdav/ (not WebDAV-enabled?):
405 Method Not Allowed
Connection to `db.ducorporation.com’ closed.
dav:!>

With suexec i’m making sure Apache is running under the proper user, also the access to any files does work from a Web browser after authentication.
Also tested

  • not to use location but directory
  • Disable Directory indexing
  • Auth non/Digest/Basic
  • Webdav folder at the route of the DocumentRoot as well as sub-folder
    -Some other thing i don’t remember

Done my testing with Firefox/litmus/cadaver general working ok with FF but not with litmus/cadaver
hop I’m clear enough
Any input would be much appreciated

Hi, I’m also having issues with WebDAV. I have not managed to get to work in any way shape or form. Is there any information on how I’m supposed to activate it?

I am also an absolute newbie to Webdav but in my standard Virtualmin setup the URL for Webdav is mydomain.com/dav, and each user of that domain must be “DAV enabled” in order to be accepted to authenticate.
I take it your domain dav.mydom.com is a primary Virtualmin domain and that dav is not a subdoman of mydom.com.
But my (questionable) understanding is that you should use a url of http(s)://dav.mydom.com/dav for your webdav access.

So far I have been able to mount the /dav folder in Windows Explorer and Mac Finder using the url https://mydom.com/dav. Having enabled DAV in Virtualmin>MYDOM>Edit Usersfor the user in question, I could authenticate on first connection.

My interest is in setting up CalDav and CardDav servers within virtualmin. I’m looking at Radicale and Baikal and trying to figure out the pros, cons and ease of use.