@Nazar
So i was successfully able to setup webdav on a mybook live using the following steps
MyBookLive: ~ # a2enmod autoindex
MyBookLive: ~ # /etc/init.d/apache2 restart
Create file “wdnas5080” in /etc/apache2/sites-availible with
<VirtualHost *:5080>
ServerAdmin webmaster@localhost
DocumentRoot /shares
Options FollowSymLinks AllowOverride NoneAlias /webdav /shares
<Location /webdav/>
Dav On
Options Indexes
Order Deny,Allow
Deny from all
Allow from all
AuthName DeviceUser
AuthType Digest
AuthDigestDomain /webdav
AuthDigestProvider file
AuthUserFile /etc/nas/apache2/auth/htpasswd
AuthGroupFile /etc/nas/apache2/auth/htgroup
Require valid-user
Create the same file but name it “000-wdnas5080” in /etc/apache2/sites-enabled
Add Litsten 0.0.0.0:5080 to ports.conf
MyBookLive
etc/apache2 # a2ensite wdnas5080
MyBookLive
etc/apache2 # /etc/init.d/apache2 reload
However when i try to use them on a mybook cloud it doesnt seem to work.
So i found that the WD cloud like the site config file with a .conf extension. So i created the following:
etc/apache2/sites-available/wdnas5080.conf
/etc/apache2/sites-enabled/000-wdnas5080 → /etc/apache2/sites-available/wdnas5080
Added “listen 0.0.0.0:5080” in ports.conf
Then:
nas1:/etc/apache2/sites-available# a2ensite wdnas5080
Enabling site wdnas5080.
But when i try to reload apache, i get:
nas1:/etc/apache2/sites-enabled# service apache2 reload
22389 (process ID) old priority 0, new priority 0
AH00526: Syntax error on line 1 of /etc/apache2/sites-enabled/wdnas5080.conf:
cannot occur within section
Action ‘configtest’ failed.
The Apache error log may have more information.
failed!
Any ideas…i would appreciate the help
Thanks