<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>web dav module Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/web-dav-module/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 16 Jan 2019 11:56:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to Set up WebDAV with Apache on CentOS 7</title>
		<link>https://www.osradar.com/how-to-set-up-webdav-with-apache-on-centos-7/</link>
					<comments>https://www.osradar.com/how-to-set-up-webdav-with-apache-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Wed, 16 Jan 2019 11:56:53 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[install webdav module]]></category>
		<category><![CDATA[setup webdav]]></category>
		<category><![CDATA[web dav module]]></category>
		<category><![CDATA[webdav]]></category>
		<category><![CDATA[webdav module]]></category>
		<category><![CDATA[webdav module with http]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=9277</guid>

					<description><![CDATA[<p>WebDAV (Web-based Distributed Authoring and Versioning) is an augmentation of the HTTP convention that enables clients to alter and oversee reports and files put away on web servers. WebDAV gives a system to clients to make, change, move, transfer, and download archives on an Apache web server. This settles on WebDAV a famous decision for [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-up-webdav-with-apache-on-centos-7/">How to Set up WebDAV with Apache on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>WebDAV (Web-based Distributed Authoring and Versioning)</p>
<p>is an augmentation of the HTTP convention that enables clients to alter and oversee reports and files put away on web servers.</p>
<p>WebDAV gives a system to clients to make, change, move, transfer, and download archives on an Apache web server. This settles on WebDAV a famous decision for designers, particularly when joined with Subversion or Git.</p>
<p>You can without much of a stretch mount WebDAV&#8217;s information stockpiling to the neighborhood filesystem. This should be possible with the mount command or with a WebDAV-bolstered file administrator, for example, Nautilus or Konqueror.</p>
<p>In this article I will clarify some fast and simple strides to set up WebDAV with Apache on CentOS 7</p>
<h2 id="requirements">Requirements</h2>
<ul>
<li>A server have running CentOS 7 with Apache installed</li>
<li>A static Public IP address for your server</li>
</ul>
<h2 id="install-the-webdav-module">Install the WebDAV module</h2>
<p>The WebDAV module is included with the <code>apache2</code> installation in CentOS 7, and is enabled by default. You can verify that the WebDAV module is running by using the following command:</p>
<pre>sudo httpd -M | grep fs
</pre>
<p>If WebDAV is enabled, you will see the following output:</p>
<pre class="">dav_fs_module (shared)
</pre>
<h2 id="configure-the-webdav-directory">Configure the WebDAV directory</h2>
<p>After installing the WebDAV module, you will need to create a <code>webdav</code> directory. Here, we will create the <code>webdav</code> directory under the Apache web root directory.</p>
<pre class="">sudo mkdir /var/www/html/webdav
</pre>
<p>Next, change the ownership (to the <code>apache</code> user) and the permissions for the <code>webdav</code> directory with the following commands:</p>
<pre class="">sudo chown -R apache:apache /var/www/html/webdav
sudo chmod -R 755 /var/www/html/webdav
</pre>
<h2 id="set-up-password-authentication">Set up password authentication</h2>
<p>It is important to secure your <code>webdav</code> directory with a password. You can do this by creating an .htpasswd file.</p>
<p>To create it, run the following command:</p>
<pre class="">sudo htpasswd -c /etc/httpd/.htpasswd dev
</pre>
<p>This will create a password file for the user <code>dev</code>.</p>
<p>Now, you need to assign group ownership of the file to the <code>apache</code> user, and lock down the permissions for everyone else. To do this, run the following command:</p>
<pre class="">sudo chown root:apache /etc/httpd/.htpasswd
sudo chmod 640 /etc/httpd/.htpasswd
</pre>
<h2 id="configure-an-apache-vhost-for-webdav">Configure an Apache vhost for WebDAV</h2>
<p>Next, you need to create a virtual host file for the <code>webdav</code> directory. Start by creating a new site configuration file called <code>webdav.conf</code>.</p>
<pre class="">sudo nano /etc/httpd/conf.d/webdav.conf
</pre>
<p>Add the following content:</p>
<pre class="">DavLockDB /var/www/html/DavLock
&lt;VirtualHost *:80&gt;
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html/webdav/
    ErrorLog /var/log/httpd/error.log
    CustomLog /var/log/httpd/access.log combined
        Alias /webdav /var/www/html/webdav
        &lt;Directory /var/www/html/webdav&gt;
            DAV On
            AuthType Basic
            AuthName "webdav"
            AuthUserFile /etc/httpd/.htpasswd
            Require valid-user
        &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</pre>
<p>Now, restart Apache to activate the new configuration:</p>
<pre class="">sudo apachectl restart
</pre>
<h2 id="test-webdav">Test WebDav</h2>
<p>Finally, WebDAV is ready for testing. Here, we will use a browser and a client to check WebDAV.</p>
<h3 id="test-with-a-web-browser">Test with a web browser</h3>
<p>To test whether the authentication is working correctly or not, open your web browser and navigate to the URL <code>http://your.server.ip/webdav/</code>.</p>
<p><img loading="lazy" class="aligncenter wp-image-9283 size-full" src="https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_pass.png" alt="" width="800" height="467" srcset="https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_pass.png 800w, https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_pass-300x175.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_pass-768x448.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_pass-719x420.png 719w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p>&nbsp;</p>
<p>You will be prompted for a user name and password to access WebDAV. Here, you will need to enter the user name and password we set before.</p>
<p>&nbsp;</p>
<p><img loading="lazy" class="wp-image-9287 size-full aligncenter" src="https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_dir_list.png" alt="" width="800" height="466" srcset="https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_dir_list.png 800w, https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_dir_list-300x175.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_dir_list-768x447.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_dir_list-721x420.png 721w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<h3 id="test-with-a-command-line-client">Test with a command line client</h3>
<p>Here, we will use a WebDAV client called Cadaver. To install Cadaver, use the command below:</p>
<pre class="">sudo yum --enablerepo=epel install cadaver
</pre>
<p>After installing Cadaver, you can test your WebDAV using the command below:</p>
<pre class="">cadaver http://your.server.ip/webdav/
</pre>
<p>&nbsp;</p>
<p><img loading="lazy" class="aligncenter size-full wp-image-9288" src="https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_login.png" alt="" width="800" height="140" srcset="https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_login.png 800w, https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_login-300x53.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/apache_centos_webdav_login-768x134.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p>If all went well, you will be asked to enter your user name and password for WebDAV. Then, You should be granted access which means that WebDAV is working correctly.</p>
<p>Some useful Cadaver command examples are listed below:</p>
<p>To upload a file to WebDAV:</p>
<pre class="">dav:/webdav/&gt; put filename
</pre>
<p>To view/list the contents on WebDAV:</p>
<pre class="">dav:/webdav/&gt; ls
</pre>
<p>To create a new directory and navigate to it:</p>
<pre class="">dav:/webdav/&gt; mkdir new-dir
dav:/webdav/&gt; cd new-dir
</pre>
<p>Once you are done, you can exit using the below command:</p>
<pre class="">dav:/webdav/&gt; exit
</pre>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-up-webdav-with-apache-on-centos-7/">How to Set up WebDAV with Apache on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-set-up-webdav-with-apache-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
