WebDAV Setup Problem

Author Message

Simon Vass

Tuesday 10 October 2006 1:19:25 pm

Hi Guys,

I am having a frustrating time trying to configure webdav for a server.

I have created the virtual host

################# IP-based Virtual Hosts
AcceptPathInfo On

NameVirtualHost 41.220.5.146:80

<VirtualHost 41.220.5.146:80>
<Directory "/var/www/html/intranet">
allow from all
Options FollowSymLinks
AllowOverride None
</Directory>

<IfModule mod_php4.c>
php_admin_flag safe_mode Off
php_admin_value register_globals 0
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value allow_call_time_pass_reference 0
</IfModule>

DirectoryIndex index.php

<IfModule mod_rewrite.c>
RewriteEngine On
Rewriterule ^/var/storage/.* - [L]
Rewriterule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/cache/texttoimage/.* - [L]
RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
Rewriterule ^/share/icons/.* - [L]
Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule .* /index.php
</IfModule>

DocumentRoot /var/www/html/intranet
ServerName intranet.ded.or.ug
ServerAlias admin.ded.or.ug
</VirtualHost>

<VirtualHost 41.220.5.146:80>
LogLevel debug
<Directory /var/www/html/intranet>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>
DocumentRoot /var/www/html/intranet
RewriteEngine On
RewriteRule .* /webdav.php
ServerName webdav.ded.or.ug
</VirtualHost>

Enabled WebDAV under overrides/webdav,ini.append.php

Added the SiteAccess entries under overrides/site.ini.append.php

But when I try and connect via cadaver all I get is.

Request body sent: okay.
Request sent; retry is 1.
[status-line] < HTTP/1.1 200 OK
[hdr] Date: Tue, 10 Oct 2006 20:05:09 GMT
Header Name: [date], Value: [Tue, 10 Oct 2006 20:05:09 GMT]
[hdr] Server: Apache/2.0.54 (Mandriva Linux/PREFORK-13.3.20060mdk)
Header Name: [server], Value: [Apache/2.0.54 (Mandriva Linux/PREFORK-13.3.20060mdk)]
[hdr] X-Powered-By: PHP/4.4.0
Header Name: [x-powered-by], Value: [PHP/4.4.0]
[hdr] Content-Length: 0
Header Name: [content-length], Value: [0]
[hdr] Content-Type: text/html
Header Name: [content-type], Value: [text/html]
[hdr]
End of headers.
Running post_send hooks
Request ends, status 200 class 2xx, error line:
200 OK
Running destroy hooks.
Request ends.
Could not access / (not WebDAV-enabled?):
Did not find a collection resource.
ne_session_destroy called.
Connection to `webdav.ded.or.ug' closed.

as far as I can see I am not getting the WebDAV header returning properly.

Under IE, all I get is a error and a blank page.

Netdrive

Connecting to http://webdav.ded.or.ug ...
Connected to webdav.ded.or.ug
XML Parsing Error: no element found at line 1
Can't get directory

The access_log shows.

41.220.5.146 - - [10/Oct/2006:23:05:09 +0300] "OPTIONS / HTTP/1.1" 200 -
41.220.5.146 - - [10/Oct/2006:23:05:09 +0300] "OPTIONS / HTTP/1.1" 200 - "-" "cadaver/0.22.2 neon/0.24.7"
41.220.5.146 - - [10/Oct/2006:23:05:09 +0300] "PROPFIND / HTTP/1.1" 200 -
41.220.5.146 - - [10/Oct/2006:23:05:09 +0300] "PROPFIND / HTTP/1.1" 200 - "-" "cadaver/0.22.2 neon/0.24.7"

nothing under error_log.

under webdav.log

2006-10-10 23:04:05 : ========================================
2006-10-10 23:04:05 : Requested URI is: / [webdav.php]
2006-10-10 23:04:05 : ========================================
2006-10-10 23:04:05 : Requested URI is: / [webdav.php]
2006-10-10 23:05:09 : ========================================
2006-10-10 23:05:09 : Requested URI is: / [webdav.php]
2006-10-10 23:05:09 : ========================================
2006-10-10 23:05:09 : Requested URI is: / [webdav.php]

I have successfully got this to work on a similar server. I just can't work this one out? Could it be due to this one being multihomed?

Simon

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.