Forums / Install & configuration / WebDAV and httpd.conf

WebDAV and httpd.conf

Author Message

Petter Arneson

Tuesday 13 September 2005 2:50:52 am

I'm using 3.6.1 and tried to follow the
http://ez.no/community/articles/build_a_webdav_enabled_intranet_with_ez_publish
article. I created a sub-domain called webdav.testshop.no and added the following lines to my httpd.conf:

Options FollowSymLinks Indexes 
DocumentRoot /home/testshop/domains/testshop.no/public_html/webdav
RewriteEngine On 
RewriteRule !\.(css|jar|js|html|htm|php)$ /home/testshop/domains/testshop.no/public_html/webdav.php 
ServerName webdav.testshop.no
ErrorLog logs/error_log 
CustomLog logs/access_log common 

 

When I test the webdav using IE on a XP box (http://webdav.testshop.no/#) I get the folders listed, and I can download files and images. When I try uploading, I get an error message: "An error occured copying some or all of the selected files". When I try uploading using Webdrive, I get the error : "Upload for file /db/Media/Images/test.jpg failed, 404 Not Found".

And when I try browsing the website, the contents are not showing, I get a blank page.

Does anyone have an ide what's wrong? How do I set up the httpd.conf to get this running?

www.vzt.no

Petter Arneson

Monday 26 September 2005 6:42:38 am

I still use a subdomain, but I have edited my httpd.conf.

<VirtualHost xxx.xxx.xxx.xxx:85>	
  <Directory /home/dyrebutikk/domains/dyrebutikken.no/public_html>
	Options FollowSymLinks Indexes ExecCGI
  	AllowOverride None
  </Directory>
  DocumentRoot /home/dyrebutikk/domains/dyrebutikken.no/public_html/webdav
  RewriteEngine On
  RewriteRule !\.(css|jar|js|html|htm|php)$ /webdav.php
  ServerAdmin jan@banan.no
  ServerName webdav.dyrebutikken.no
</VirtualHost>

I can download and browse files, but I cant upload.
Logfile:

[Mon Sep 26 15:29:16 2005] [error] [client 84.48.104.49] client denied by server configuration: /home/dyrebutikk/domains/dyrebutikken.no/public_html/webdav.php

I have also set 777 permissions on my folders.

Is this an ez problem? How and where do I set the right permissons?

www.vzt.no

Petter Arneson

Tuesday 27 September 2005 2:24:45 am

I get this from the webdav.log when I try to upload a image. It seems to fail on FetchNodeByTranslation.

2005-09-27 11:34:35 : ----------------------------------------
2005-09-27 11:34:35 : Client says: HEAD [processClientRequest]
2005-09-27 11:34:35 : Target: /db/Content/Galleries/Landscape/halflife2.jpg [processClientRequest]
2005-09-27 11:34:35 : ----------------------------------------
2005-09-27 11:34:35 : HEAD was issued from client. [processClientRequest]
2005-09-27 11:34:35 : current site: db [CS:get]
2005-09-27 11:34:35 : Can access 'db' and 'Content' [CS:userHasVirtualAccess]
2005-09-27 11:34:35 : attempting to fetch node, target is: Galleries/Landscape/halflife2.jpg [CS:get]
2005-09-27 11:34:35 : Node translation failed: galleries/landscape/halflife2 [CS:fetchNodeByTranslation]
2005-09-27 11:34:35 : No nodeID [CS:fetchNodeByTranslation]
2005-09-27 11:34:35 : No node for: Galleries/Landscape/halflife2.jpg [CS:get]
2005-09-27 11:34:35 : outputData: No file specified [outputSendDataToClient]
2005-09-27 11:34:35 : handle function was called with status: 31 [handle]
2005-09-27 11:34:35 : Logged in: 'admin' [webdav.php]
2005-09-27 11:34:35 : WebDAV server started... [processClientRequest]
2005-09-27 11:34:35 : start url: /db/Content/Galleries/Landscape/halflife2.jpg [CS:processURL]
2005-09-27 11:34:35 : indexdir url: db/Content/Galleries/Landscape/halflife2.jpg [CS:processURL]
2005-09-27 11:34:35 : ----------------------------------------
2005-09-27 11:34:35 : Client says: GET [processClientRequest]
2005-09-27 11:34:35 : Target: /db/Content/Galleries/Landscape/halflife2.jpg [processClientRequest]
2005-09-27 11:34:35 : ----------------------------------------
2005-09-27 11:34:35 : GET was issued from client. [processClientRequest]
2005-09-27 11:34:35 : current site: db [CS:get]
2005-09-27 11:34:35 : Can access 'db' and 'Content' [CS:userHasVirtualAccess]
2005-09-27 11:34:35 : attempting to fetch node, target is: Galleries/Landscape/halflife2.jpg [CS:get]
2005-09-27 11:34:35 : Node translation failed: galleries/landscape/halflife2 [CS:fetchNodeByTranslation]
2005-09-27 11:34:35 : No nodeID [CS:fetchNodeByTranslation]
2005-09-27 11:34:35 : No node for: Galleries/Landscape/halflife2.jpg [CS:get]
2005-09-27 11:34:35 : outputData: No file specified [outputSendDataToClient]
2005-09-27 11:34:35 : handle function was called with status: 31 [handle]

www.vzt.no

Xavier Dutoit

Tuesday 27 September 2005 6:40:15 am

Do you have the same problem with konqueror or ie ?

I've put my hand (well I've been badly burned) on a problem related to webdav and netdrive.

One big problem might be your windows config: please check that it doesn't hide automatically the known extensions, it's one of the source of problem...

X+

http://www.sydesy.com

Petter Arneson

Tuesday 27 September 2005 7:00:35 am

Hi!
Thanks for answering.

No, I dont hide extensions for known filetype.
I have also tested with IE6 and a third party tool called Webdrive.

www.vzt.no