WebDAV sharing services not working

Hello all,


I´ve set up a directory on my Lion Server called "WebDAV" which I shared with access for iOS devices to a specific user and group. Furthermore I´ve set up an webservice with a specific port (8888) because I´ve more than one webservice running on this machine. I´ve set the doc root to the "WebDAV" directory. Access is set to same group as defined in the shares panel.


If I try to access this WebDAV service/share using browsers or iPad I´m prompted to enter username and password followed by:

Forbidden

You don't have permission to access / on this server.

Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8r DAV/2 Server at <host> Port 8888



With OS X Snow Leopard Server this set up worked fine.


Is there something wron with my setup?

Please help, I really need webdav access to my data.


Best regards,

C.

Mac mini, Mac OS X (10.7), OS X Lion Server

Posted on Jul 23, 2011 3:11 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 27, 2011 6:00 AM

Thanks for this clarification. Now I know where my mistake came from. I created a Folder "webdav". So I had to put in the URL https://server.example.com/webdav/webdav/iWork


So I didn't recognize that I have to put in /webdav/ twice. My fault.


Now it works as supposed.


Thanks a lot!

15 replies

Jul 24, 2011 12:33 PM in response to xlendi

Before you go back...


Try ("*" is for the default host in the "Web" service, for any other replace it with the right domain name)

sudo webappctl status com.apple.webapp.webdavsharing "*"


If this says "running" search your logs (via Console.app) for any mentions of WebDav. Also see what the console on the client says.

Whenever I tried to connect using Finder Console reported 503.


If it's not running:


sudo webappctl start com.apple.webapp.webdavsharing "*"


This should start it (in this case for the default domain).

Jul 26, 2011 10:52 PM in response to Dirty Bird

Got this same problem and it was due to the fact that there was no ~/Libray/Logs folder for apache to create the apache webdav user instance log.


Fixed it with a simple


mkdir ~/Library/Logs


in a terminal session suing the accoutn that didn't work.


I don't really know why but some of my users had the Library/Logs folder others didn't...go figure...


I had to stop and restart the web service in Server.app efter creating the missing folder


Hope this helps.

Jul 27, 2011 2:26 AM in response to Dirty Bird

As I said before check this:


sudo webappctl status com.apple.webapp.webdavsharing "*"


If this says "running" search your logs (via Console.app) for any mentions of WebDav, since there will probably be some config file problem. Also see what the console on the client says.

Whenever I tried to connect using Finder Console reported 503.


If it's not running:


sudo webappctl start com.apple.webapp.webdavsharing "*"


This should start it (in this case for the default domain).

Jul 27, 2011 5:19 AM in response to Reinhard Arnhold

You have to type in https://server.example.com/webdav/ (or http) in Finder, that way it'll connect using WebDAV.


Any directory that is shared (and the user's home directory) are available directly at:


https://server.example.com/webdav/[name-of-directory]


So, if you have a directory shared through WebDAV called iWork you can get into it directly using:


https://server.example.com/webdav/iWork


If it's in the home directory (so ~/iWork) it would be:


https://server.example.com/webdav/[users_shortname]/iWork


(If you have multiple short names for a user I don't know which it'll take, it seems this isn't always the same, but I'm not certain)

Jul 24, 2011 11:58 AM in response to Alexander Weiss

Hi,


I tried it using http://myserver/webdav as well as https://myserver/webdav (although ssl is not enabled) with Safari and Firefox without success. Furthermore I used a FTP/SFTP/WebDAV client from another mac with the same result. Finally I used my ipad to access the webdav share. Always the same result. 😟


For now I returned to Snow Leopard server but I´m still looking forward for a solution on this.


Best regards,

Jul 25, 2011 12:04 PM in response to Alexander Weiss

Hm, I already turned back to Snow Leopard but I will keep Your hint in mind when I again find the time and a machine to give Lion another try.


But basically webdav services are running since I was able to connect as admin to a unspecified directory. It was not the users home nor root.


So I assume that there is a basic problem when hosting more than one domain and/or when sharing files using webdav to a specified user. And unfortunately the new admin interface does not provide proper access to all controll/parameters.


So - I will probably wait for version 10.7.1 or 10.7.2 before I restart with Lion Server.


Best regards,

C.

Jul 26, 2011 1:39 PM in response to Alexander Weiss

Hi Alexander,


I trief your suggestions and got back that web services are running.

If I try to connect to https://myserver.dyndns.org/WebDAV I asked for Username and password. But this isn't accepted. I have. Tried with a local user also with a OD Domainuser and get the same error:

Forbidden


You don't have permission to access /webdav/ on this server.


Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8r DAV/2 Server at 192.168.1.40 Port 443.


So I am really without a clue what to do.


Io shows shows me:

Warn: incomplete redirection target of '/webdav/' for URI '/webdav' Modified to 'https://my.dyndns.xxx/webdav/'


Any ideas?

Jul 27, 2011 3:01 AM in response to Reinhard Arnhold

I did connect through finder, bt this is an afp connection. How ever no it works from my iPad apps as I want it. But Omnifocus is having trouble placing its server database there and sync. It seems, that Apple has changed something.


How ever I couldn't find out how to point direct into an directory. It seems not possible to point i.e. Pages for iPad to use the directory iWork. If you try to login directly into an directory other than webdav it doesn't work.


Any Ideas?


And I'll have to try with different userse using their private directories.


Regards

Mar 14, 2012 9:03 AM in response to _ragle

_ragle - The "Allow from 127.0.0.1" directive in that file is correct. The main httpd listens on all addresses, and proxies requests for /webdav/* to the user-specific httpds, listening on 127.0.0.1, on the same machine. The configuration directives in /private/etc/apache2/httpd_webdavsharing_sharepoints.conf apply only to the user-specific instances of httpd.

Aug 21, 2012 4:32 AM in response to The Teknologist

My problem is exactly this issue. Can you elaborate a little bit more on how you got it work? What do you mean by "in the terminal using the user account"?

For example, if the user account is "psmith". i am in terminal, what do i type or where do i go?


I can access webdav with mac os x (command K), and ios devices for some users, but some others I get error 503.

Any feedback will be appreacited.

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 sharing services not working

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