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.

eZ debug

Timing: Jan 18 2025 19:34:12
Script start
Timing: Jan 18 2025 19:34:12
Module start 'layout'
Timing: Jan 18 2025 19:34:12
Module start 'content'
Timing: Jan 18 2025 19:34:13
Module end 'content'
Timing: Jan 18 2025 19:34:13
Script end

Main resources:

Total runtime0.7660 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.0469152.6250
Module start 'layout' 0.00480.0025 741.671939.4453
Module start 'content' 0.00730.7565 781.1172432.0938
Module end 'content' 0.76380.0021 1,213.210912.1719
Script end 0.7659  1,225.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4479160.0002
Check MTime0.00130.1640160.0001
Mysql Total
Database connection0.00070.097410.0007
Mysqli_queries0.706092.1751460.0153
Looping result0.00040.0552440.0000
Template Total0.729695.320.3648
Template load0.00250.331020.0013
Template processing0.727094.918820.3635
Template load and register function0.00020.022710.0002
states
state_id_array0.00100.125210.0010
state_identifier_array0.00120.154620.0006
Override
Cache load0.00200.26611010.0000
Sytem overhead
Fetch class attribute can translate value0.00050.064410.0005
Fetch class attribute name0.00050.067910.0005
XML
Image XML parsing0.00010.015910.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00060.0792100.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs