WebDAV - can't create folders

I have a WebDAV share set up on my webserver (HTTPS) that I can connect to and browse however it displays a rather strange problem when I try to create or upload new folders: I get the error "The operation can’t be completed because the item can’t be found." Individual documents upload fine. Cadaver can create folders without any problem from the command line.

The server logs are throwing this error: Client denied by server configuration: /Library/WebServer/Documents/davshare/.DS_Store

Not quite sure how to deal with this error. I haven't tried with other clients yet.

Any help or comments appreciated.

Thanks,
Miles

13 XServes..., Mac OS X (10.6.2)

Posted on Feb 26, 2010 5:47 AM

Reply
4 replies

Feb 26, 2010 5:58 AM in response to Miles Muri

Here's the relevant section in the site .conf:

<Directory "/Library/WebServer/Documents/davshare">
AuthType Basic
<Limit GET HEAD OPTIONS CONNECT POST PROPFIND PUT DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require group cadres
Require user miles
</Limit>
AuthName "davshare"
</Directory>


I was having trouble earlier with the group auth - I had to put users in individually for the access to work.

Thanks,

Miles

Feb 26, 2010 1:58 PM in response to Miles Muri

OK, here's what was causing the problem:

the .htaccess file at the root level of the site was interfering with the way that WebDAV worked. Here's the contents of the .htaccess (and no, I didn't program this):

Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine on
# fix missing trailing slash
# -> the file has no extension
RewriteRule !..{2,6}$ - [C]
# -> and does not end with a slash
RewriteCond %{REQUEST_URI} !^.*/$
# => redirect
RewriteRule ^(.+)$ /$1/ [R=301,L]
RewriteRule ^(EN|FR)/([^>.)/([^>.*)/index.html(.)$ /index.php?s=$1&l=$2&p=$3 [NC,L,QSA]
RewriteRule ^(EN|FR)/([^>.)/([^>.)/$ /index.php?s=$1&l=$2&p=$3 [NC,L,QSA]
RewriteRule ^(EN|FR)/([^>.)/index.html(.)$ /index.php?l=$1&p=$2 [NC,L,QSA]
RewriteRule ^(EN|FR)/([^>.*)/$ /index.php?l=$1&p=$2 [NC,L,QSA]
RewriteRule ^(EN|FR)/index.html(.*)$ /index.php?p=$1 [NC,L,QSA]
RewriteRule ^(EN|FR)/$ /index.php?p=$1 [NC,L,QSA]
</IfModule>
php_value postmaxsize 55M
php_value uploadmaxfilesize 10M
ErrorDocument 404 /erreur404.html


I would have liked to fix the problem by overriding the parent .htaccess, but I couldn't quite get that working so I ended up moving to a different subdomain.

If anyone has a quick fix for overriding the parent .htaccess for WebDAV use, I would be interested.

Miles

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

WebDAV - can't create folders

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.