You are not logged in.

#1 2015-04-11 10:36:25

Louson
Member
Registered: 2014-01-11
Posts: 8

WebDav 403 forbidden

Hello,

I have followed the WebDav wiki and I get the error 403 Forbidden:

$ cadaver http://127.0.0.1/dav
dav:/dav/> mkcol test
Creating `test': failed:
403 Forbidden
dav:/dav/> 

I have looked the forum pages
* 403 Forbidden Error on directory but not on index page which actually uses owncloud's webdav
* [SOLVED] Apache and user directory
And also tried what is said in the discussion page

But I can't find the problem.

/var/log/httpd/access_log:

127.0.0.1 - - [11/Apr/2015:12:16:46 +0200] "OPTIONS /dav/ HTTP/1.1" 200 -
127.0.0.1 - - [11/Apr/2015:12:16:46 +0200] "PROPFIND /dav/ HTTP/1.1" 207 683
127.0.0.1 - - [11/Apr/2015:12:16:56 +0200] "MKCOL /dav/test/ HTTP/1.1" 403 977

/var/log/httpd/access_log:

[Sat Apr 11 12:14:42.113880 2015] [dav:error] [pid 22639:tid 140478398338816] (13)Permission denied: [client 127.0.0.1:46716] Unable to create collection.  [403, #0]

/etc/httpd/cond/httpd.conf: (full conf if here)

DAVLockDB /home/httpd/DAV/DAVLock
Alias /dav "/home/httpd/html/dav"
<Directory "/home/httpd/html/dav">
  DAV On
  AllowOverride None
  Options Indexes FollowSymLinks
  Require all granted
</Directory>

And the status of my directory:

$ ls -la /home/httpd/DAV/
total 8
drwxr-xr-x 2 http http 4096 10 avril 19:29 .
drwxr-xr-x 4 root root 4096 10 avril 19:27 ..
-rw-r--r-- 1 http http    0 10 avril 19:29 DAVLock.dir
-rw-r--r-- 1 http http    0 10 avril 19:29 DAVLock.pag

$ ls -la /home/httpd/html/    
total 12
drwxr-xr-x 3 root   root   4096 10 avril 19:27 .
drwxr-xr-x 4 root   root   4096 10 avril 19:27 ..
drwxr-xr-x 2 nobody nobody 4096 11 avril 10:38 dav

Thanks for any help !

Last edited by Louson (2015-04-11 10:41:10)

Offline

#2 2015-04-21 19:53:26

cooro
Member
Registered: 2015-04-21
Posts: 1

Re: WebDav 403 forbidden

Hello Louson,

If you haven't resolved the problem, try to change the permissions.

chown -R http:http /home/httpd/html/dav

Offline

#3 2015-05-02 09:56:59

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: WebDav 403 forbidden

ok, it works...

if I open webdav dir with konqueror:

webdav://myuser@localhost/dav/

I can create or rename dir or file...
but I have access-error if I try to open file with editor kate

Offline

#4 2015-05-02 10:21:38

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: WebDav 403 forbidden

What error do you get with Kate? Also, what does apache log at that point?

Offline

#5 2015-05-02 11:12:36

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: WebDav 403 forbidden

in /var/log/httpd/error_log I dont view error

in kate I view error:

impossible to load file, is no possible to read it
impossible to create io-slave


in cadaver all works with "edit" command




http://digilander.libero.it/sacarde/np/errore-kate.jpg

Last edited by sacarde (2015-05-02 11:18:34)

Offline

Board footer

Powered by FluxBB