Note that there are some explanatory texts on larger screens.

plurals
  1. POapache2: configuration of mod_dav, mod_dav_fs
    primarykey
    data
    text
    <p>On a mountpoint (specifically: /var/data/) I have mounted a 3tb raid partition that stores all kind of data and I would like to share it through WebDAV. So I installed davfs2 on my client and set up the server site by adding:</p> <pre><code>ScriptAlias "/var/www/webdav" "/var/data" &lt;Directory "/var/www/webdav"&gt; Dav On &lt;/Directory&gt; </code></pre> <p>Finally I added the www-data user to the media group, which is the group that has read/write access to all the /var/data stuff (file mode for all contents is 660, chown is "some_owner_which_is_part_of_media:media").</p> <p>Then a a2enmod mod_dav and a restart of the apache should arise it to life. Ok, fine until here. I mounted the davfs on my client pc and it worked like a glance. At least it looked like that. The contents were listed and I was happy. Later I tried to open some file on my client, but sadly it failed with an IO error. And here the problems begin.</p> <pre><code>==&gt; /var/log/apache2/access.log &lt;== jin.local - - [26/Jun/2010:14:04:45 +0200] "PROPFIND /webdav/ HTTP/1.1" 207 25152 "-" "davfs2/1.4.5 neon/0.29.0" jin.local - - [26/Jun/2010:14:04:46 +0200] "GET /webdav/test HTTP/1.1" 500 823 "-" "davfs2/1.4.5 neon/0.29.0" ==&gt; /var/log/apache2/error.log &lt;== [Sat Jun 26 14:04:46 2010] [error] [client 192.168.2.50] (13)Permission denied: exec of '/var/data/test' failed [Sat Jun 26 14:04:46 2010] [error] [client 192.168.2.50] Premature end of script headers: test </code></pre> <p>In the assumption it might be a problem with the permissions that apache2 has no right to access this stuff I swiftly chowned the files and therefore I am quite sure it must be fine like this:</p> <pre><code># ls -la /var/data -rw-r--r-- 1 www-data www-data 22 2010-06-27 10:07 anotherTest -rw-r--r-- 1 www-data www-data 5 2010-06-26 19:28 test # cat anotherTest this is another test # cat test test </code></pre> <p>Lately I also added authentication, in case WebDAV could need that to allow me the GET request. The authentication works but the rest just stays the same.</p> <p>At this point I don't know what I could change. Anyone got an idea what I could try?</p> <p>Greetings, D.</p> <p>-- EDIT --</p> <p>some more log stuff and the current configuration. i just dont get what is wrong with it. as you can see in the log i can create (PUT) and delete (DELETE) files. but get just doesnt work.</p> <pre><code>ScriptAlias /webdav/ /test/ &lt;Location /webdav/&gt; DAV On AuthType Basic AuthName "Restricted Files" AuthBasicProvider file AuthUserFile /var/www/passwords AuthGroupFile /var/www/groups &lt;LimitExcept PROPFIND&gt; require group webdav &lt;/LimitExcept&gt; &lt;/Location&gt; </code></pre> <p>This is so odd?!</p> <pre><code>192.168.2.158 - - [02/Jul/2010:21:11:38 +0200] "GET /webdav/test HTTP/1.1" 500 823 "-" "-" 192.168.2.158 - - [02/Jul/2010:21:11:38 +0200] "GET /webdav/test HTTP/1.1" 500 823 "-" "-" 192.168.2.158 - dominik [02/Jul/2010:21:11:39 +0200] "PROPFIND /webdav/ HTTP/1.1" 207 1882 "-" "-" 192.168.2.158 - - [02/Jul/2010:21:11:39 +0200] "GET /webdav/test HTTP/1.1" 500 823 "-" "-" 192.168.2.158 - - [02/Jul/2010:21:11:39 +0200] "GET /webdav/test HTTP/1.1" 500 823 "-" "-" 192.168.2.158 - - [02/Jul/2010:21:11:39 +0200] "GET /webdav/test HTTP/1.1" 500 823 "-" "-" 192.168.2.158 - dominik [02/Jul/2010:21:11:42 +0200] "PROPFIND /webdav/.test.swp HTTP/1.1" 404 467 "-" "-" 192.168.2.158 - dominik [02/Jul/2010:21:11:42 +0200] "PUT /webdav/.test.swp HTTP/1.1" 201 481 "-" "-" 192.168.2.158 - dominik [02/Jul/2010:21:11:42 +0200] "DELETE /webdav/.test.swp HTTP/1.1" 204 141 "-" "-" 192.168.2.158 - dominik [02/Jul/2010:21:11:45 +0200] "PROPFIND /webdav/ HTTP/1.1" 207 497 "-" "-" ==&gt; /var/log/apache2/private-error.log &lt;== [Fri Jul 02 21:11:38 2010] [error] [client 192.168.2.158] (13)Permission denied: exec of '/test/test' failed [Fri Jul 02 21:11:38 2010] [error] [client 192.168.2.158] Premature end of script headers: test [Fri Jul 02 21:11:38 2010] [error] [client 192.168.2.158] (13)Permission denied: exec of '/test/test' failed [Fri Jul 02 21:11:38 2010] [error] [client 192.168.2.158] Premature end of script headers: test [Fri Jul 02 21:11:39 2010] [error] [client 192.168.2.158] (13)Permission denied: exec of '/test/test' failed [Fri Jul 02 21:11:39 2010] [error] [client 192.168.2.158] Premature end of script headers: test [Fri Jul 02 21:11:39 2010] [error] [client 192.168.2.158] (13)Permission denied: exec of '/test/test' failed [Fri Jul 02 21:11:39 2010] [error] [client 192.168.2.158] Premature end of script headers: test [Fri Jul 02 21:11:39 2010] [error] [client 192.168.2.158] (13)Permission denied: exec of '/test/test' failed [Fri Jul 02 21:11:39 2010] [error] [client 192.168.2.158] Premature end of script headers: test </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload