As you might read above, webdav didnt work for me at first place, so I fixed problem by changing permission passwd.dav to 664.
Then, I also remembered, that some users would like to have webdav folder seperate from web folder (hide web files from the others) and enabled to users to see it.
Here is the solution that worked for me.
My website is /var/www/web12 and webdav folder is /var/www/web12/web/share
First we check, that "WebDAV" is disabled for your site.
Then we create "share" folder (or whatever you want to name it, but dont forget to change alias) and change permission to 777
In the apache directives (vhosts) we put:
Code:
<IfModule mod_dav.c>
Alias /webdav /var/www/web12/web/share
<Location /webdav>
DAV On
AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/web12/.htpasswd
Require valid-user
</Location>
</IfModule>
Change web12 to whatever it suites you.
Save and it should work.
You can conect it just the same, to
http://www.yourdomain.tld:80/webdav if you are using Windows machine.
David
Recent comments
5 hours 6 min ago
6 hours 6 min ago
9 hours 53 min ago
11 hours 7 min ago
14 hours 43 min ago
21 hours 58 min ago
1 day 6 hours ago
1 day 8 hours ago
1 day 23 hours ago
2 days 1 hour ago