Forums / Install & configuration / WebDAV Setup Problem

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

eZ debug

Timing: Jan 18 2025 18:20:34
Script start
Timing: Jan 18 2025 18:20:34
Module start 'content'
Timing: Jan 18 2025 18:20:34
Module end 'content'
Timing: Jan 18 2025 18:20:35
Script end

Main resources:

Total runtime0.9615 sec
Peak memory usage4,096.0000 KB
Database Queries183

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 587.7188180.8359
Module start 'content' 0.00890.8243 768.5547437.1719
Module end 'content' 0.83320.1281 1,205.7266333.8203
Script end 0.9613  1,539.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4170210.0002
Check MTime0.00150.1509210.0001
Mysql Total
Database connection0.00160.169110.0016
Mysqli_queries0.876191.11551830.0048
Looping result0.00170.17631810.0000
Template Total0.924596.120.4623
Template load0.00230.237620.0011
Template processing0.922295.910820.4611
Template load and register function0.00020.016410.0002
states
state_id_array0.00120.122010.0012
state_identifier_array0.00080.086520.0004
Override
Cache load0.00190.19841010.0000
Sytem overhead
Fetch class attribute can translate value0.00160.166120.0008
Fetch class attribute name0.00080.084210.0008
XML
Image XML parsing0.00050.054220.0003
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00510.5292210.0002
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 5

Time used to render debug report: 0.0004 secs