![]() ![]() Now that the passwd.dav containing the password we must make it accessible and visible only to the system administrator root and group members www-data: ~$ sudo chown root:www-data /var/www/webdav/passwd.dav Let's copy the nf file from “ sites available” to “ enabled sites” with this command: ~$ sudo a2ensite nfīefore restarting Apache we need to create a password to access the WebDAV shares ( USER must be a user of the system): ~$ sudo htpasswd -c /var/www/webdav/passwd.dav USER Now let's save and close the file with ctrl + o and ctrl + c. Note the local address “ You will need to enter the real address of the site administrator. The contents of the file: NameVirtualHost * conf which will contain instructions for Apache for it to “notice” of the virtual host: ~$ sudo nano /etc/apache2/sites-available/nf It is important that the owner of the directory and all content is Apache: ~$ sudo chown www-data.www-data /var/www/webdav In the next step you will create the necessary environment for the host to operate: specific directories, related permissions, changes to the file. ![]() We restart the web server with the command: ~$ sudo /etc/init.d/apache2 restart Virtual host configuration We open a terminal and type: ~$ sudo a2enmod dav Enable modulesįirst we enable the modules necessary for the functioning of WebDAV. I'll use Ubuntu for the occasion 20.04 LTS. We assume that on the PC in question there is already an active and functioning LAMP installation. By the end of this article you will know how to activate WebDAV on a Linux computer. However, by installing the webserver we will not automatically enable WebDAV as well. WebDAV is directly dependent on and connected to Apache2. WebDAV is nothing new, it was first introduced in 1996 and it has been the standard ever since de facto of many web applications. WebDAV (acronym for Web Distributed Authoring and Inersioning) is an HTTP protocol extension that enables clients to perform operations on the remote server. This article was published more than a year ago, there may have been developments. Precise also confirm that this blog can not be called news organization for the purpose of the recent laws and decree-laws now in force. Are otherwise conducive to exchanging links, Pingback, or any other form of sharing remains free as long as free, no gain or for me, or for other others. For this reason I give up right away to the inclusion of my articles on other sites they can develop a financial return (per se or other) the inclusion of these items. My real contribution is the direct payment of the domain and the web space on which it is hosted on this site, also contribute with my items, I write for the good of the community and for which I do not receive any compensation. I firmly believe in the open source philosophy, and I write my articles to help the Internet community to grow for free.
0 Comments
Leave a Reply. |