MyCloud up to V04 (current v04.01.00-408) is always very fragile, install a aria2 accidentally on the brick, but since the dashboard is based on Apache, and a variety of clues to establish WebDAV or a chance, the steps are as follows:
Preparatory work
0.SSH Login to MyCloud
1. Create a Directory
The working directory of WebDAV is established first and can be established according to individual needs (using the DF command to view the directory structure)
Mkdir/nfs/public/webdav
After the directory is established to assign permissions, otherwise WebDAV access is not normal, www-data this user is the APACHE HTTP service user information, according to /etc/apache2/envvars this file apache_run_user Variable settings
Chown Www-data/nfs/public/webdav
2. Generate Apache Authentication file, username WebDAV, follow the prompts two times to enter the password you need to set
Htpasswd-c/etc/apache2/passwd.dav WebDAV
Configuration
3. Configure the virtual directory
Enter the directory where the reference configuration file is located
Cd/etc/apache2/sites-enabled
Create a new profile webdav.conf content is
<ifmodule mod_dir.c>
#WebDAV Config 2014-11-16
#WebDAV Path/nfs/public/webdav
Alias/webdav/nfs/public/webdav
<Directory/nfs/Public/webdav>
Options Indexes MultiViews
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
<Location/webdav/>
DAV on
AuthType Basic
AuthName "WebDAV"
Authuserfile/etc/apache2/passwd.dav
Require Valid-user
</Location>
#End WebDAV Config
</IfModule>
Verify
4.Apache Check Configuration
Apache2ctl Configtest
Result Syntax OK
5. Restart the service
/etc/init.d/apache2 Reload
Output OK Word.
Browser Access Http://IP (MC IP)/webdav, the Index of/webdav configuration is successful, other applications can be accessed, such as OmniFocus
Resources
Main steps:
Http://bbs.feng.com/read-htm-tid-6592882.html
Virtual Directory configuration:
http://blog.csdn.net/u010175124/article/details/18220495
This article is from the "persist in Treatment" blog, please make sure to keep this source http://liongmagezi.blog.51cto.com/2848085/1577229
Configuring WebDAV Services in WD MyCloud (V04)