Configure the WebDav server in Ubuntu

Source: Internet
Author: User
What is WebDAV? Simply put: "Web-based distributed creation and version" WebDAV. It is an HTTP protocol that allows users to collaborate to edit and manage extensions of files on remote Web servers. I heard that Apple's icloud is also implemented based on webdav. How can I configure the webdav server with Ubuntu? First understand some of webdav open source projects and business projects, visit this link: http://webdav.org. Enter the terminal: Step 1: Install apa

What is WebDAV?

Simply put: "Web-based distributed creation and version" WebDAV. It is an HTTP protocol that allows users to collaborate to edit and manage extensions of files on remote Web servers. I heard that Apple's icloud is also implemented based on webdav. How can I configure the webdav server with Ubuntu?

First understand some of webdav open source projects and business projects, visit this link: http://webdav.org.

Enter the terminal:

Step 1: Install The apache2 service:

Sudo apt-get install apache2

Step 2: Enable the associated modules:

Sudo a2enmod dav_fs

Sudo a2enmod dav
Sudo a2enmod dav_lock

Step 3: Associate the SO file:

Sudo ln-s/etc/apache2/mod-available/dav. load/etc/apache2/mod-enabled/dav. load

Sudo ln-s/etc/apache2/mod-available/dav_fs.load/etc/apache2/mod-enabled/dav_fs.load

Sudo ln-s/etc/apache2/mod-available/dav_lock.load/etc/apache2/mod-enabled/dav_lock.load
Sudo ln-s/etc/apache2/mod-available/dav_fs.conf/etc/apache2/mod-enabled/dav_fs.conf

Step 4: restart the service:

Sudo/etc/init. d/apache2 restart

Step 5: Create a VM:

Mkdir/var/www/sync

Chown www-data: www-data/var/www/sync

Step 6: create a user:

Sudo htpasswd-c/var/www/me. dav terry
-- You will be requested to re-confirm the password here
Sudo chown root: www-data/var/www/me. dav

Sudo chmod 640/var/www/me. dav

Step 7: configure the VM:

Sudo gedit/etc/apache2/sites-available/default

Add the following configuration information to the VirtualHost node:

DocumentRoot/var/www/sync/

Options Indexes MultiViews
AllowOverride None
Order allow, deny
Allow from all

Alias/webdav/var/www/sync


DAV On
AuthType Basic
AuthName "webdav"
AuthUserFile/var/www/me. dav
Require valid-user
 

Last step: restart the service and log on! Use the command line cadaver to log on

Sudo/etc/init. d/apache2 restart

Sudo apt-get install cadaver

Cadaver http: // 127.0.0.1/webdav/

OK.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.