[Solved] Lighttpd-1.4.37: Http DELETE results in 501 - Not Implemented. PUT - 403 Forbidden.
Added by kleiton1 over 9 years ago
Hello,
I have RedHat 6, lighttpd-1.4.37 version. I try to use WebDAV on it.
My configure files included.
So, I activated WebDav mode. Read access is working correctly, but mainly I need to execute DELETE and PUT commands. Settings allow to execute this commands, but it doesn't work.
I tried to use different clients, this is an example with cadaver client:
[root@redhat-ha1 ~]# cadaver http://redhat-ha1/
dav:/> ls
Listing collection `/': succeeded.
Coll: 24 4096 Oct 6 14:53
Coll: 26 4096 Oct 6 16:12
Coll: heartbeat 4096 Oct 9 12:09
test 3 Oct 9 12:10
dav:/> delete test
Deleting `test': failed:
501 Not Implemented
dav:/> put /bin/output/test
Uploading /bin/output/test to `/test':
Progress: [=============================>] 100.0% of 3 bytes failed:
403 Forbidden
Logs is:
access.log
192.168.84.203 redhat-ha1 - [09/Oct/2015:12:46:20 +0400] "DELETE /test HTTP/1.1" 501 357 "-" "cadaver/0.23.3 neon/0.29.3"
192.168.84.203 redhat-ha1 - [09/Oct/2015:12:13:54 +0400] "PUT /test HTTP/1.1" 403 345 "-" "cadaver/0.23.3 neon/0.29.3"
error.log
2015-10-09 12:46:32: (mod_access.c.137) -- mod_access_uri_handler called
2015-10-09 12:46:32: (configfile-glue.c.585) === start of condition block ===
2015-10-09 12:46:32: (configfile-glue.c.543) 1 (cached) result: true
2015-10-09 12:46:32: (configfile-glue.c.585) === start of condition block ===
2015-10-09 12:46:32: (configfile-glue.c.543) 2 (cached) result: false
2015-10-09 12:46:32: (configfile-glue.c.585) === start of condition block ===
2015-10-09 12:46:32: (configfile-glue.c.543) 1 (cached) result: true
2015-10-09 12:46:32: (configfile-glue.c.585) === start of condition block ===
2015-10-09 12:46:32: (configfile-glue.c.543) 2 (cached) result: false
2015-10-09 12:46:32: (response.c.465) -- before doc_root
2015-10-09 12:46:32: (response.c.466) Doc-Root : /bin/output
2015-10-09 12:46:32: (response.c.467) Rel-Path : /test
2015-10-09 12:46:32: (response.c.468) Path :
2015-10-09 12:46:32: (response.c.516) -- after doc_root
2015-10-09 12:46:32: (response.c.517) Doc-Root : /bin/output
2015-10-09 12:46:32: (response.c.518) Rel-Path : /test
2015-10-09 12:46:32: (response.c.519) Path : /bin/output /test
2015-10-09 12:46:32: (configfile-glue.c.585) === start of condition block ===
2015-10-09 12:46:32: (configfile-glue.c.543) 1 (cached) result: true
2015-10-09 12:46:32: (configfile-glue.c.585) === start of condition block ===
2015-10-09 12:46:32: (configfile-glue.c.543) 2 (cached) result: false
2015-10-09 12:46:32: (response.c.124) Response-Header: \nHTTP/1.1 501 Not Implemented\r\nContent-Type: text/html\r\nContent-Length: 357\r\nDate: Fri, 09 Oct 2015 08:46:32 GMT\r\nServer: lighttpd/1.4.37\r\n\r\n
All shared files and directories have 777 access rights, owner=lighttpd. I tried to change owner, but it did not help.
Could you help me please to find out, what's wrong?
Thanks!
modules (3.16 KB) modules | modules.conf | ||
lighttpd (11.8 KB) lighttpd | lighttpd.conf | ||
webdav.conf (287 Bytes) webdav.conf | webdav.conf |
Replies (1)
RE: Lighttpd-1.4.37: Http DELETE results in 501 - Not Implemented. PUT - 403 Forbidden. - Added by kleiton1 over 9 years ago
Just answer to myself :)
The problem was in SELinux service, which was turn on by default. That's why was not possible to get normal file access.
This service must be turn off or configure an advance. I turned it off, and now WebDAV is working correctly.
Thank you!