Getting Webdav Working

3 posts / 0 new
Last post
#1 Mon, 01/15/2018 - 01:33
Matth
Matth's picture

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
<Directory "/home/dav/public_html">
Options Indexes MultiViews
AllowOverride None
Require all granted
</Directory>
Alias /webdav /home/dav/public_html
<location /webdav>
Dav on
AuthType Basic
AuthBasicProvider file
AuthName "WebDav"
AuthUserFile /home/dav/public_html/.htpasswd
<Limit GET PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK OPTIONS>
  Require valid-user
</Limit>
</location>
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

Wed, 02/07/2018 - 05:07
Limpan

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?

Mon, 08/27/2018 - 01:15
PeterP

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.

Topic locked