Skip navigation

How do I set up WebDAV on the server?

54808 Views 36 Replies Latest reply: Aug 5, 2013 10:20 PM by Eugen F RSS
1 2 3 Previous Next
hvail Level 1 Level 1 (20 points)
Currently Being Moderated
Aug 12, 2011 5:30 AM

I have a MacMini with Lion Server.  I am trying to set up WebDAV to work with my iPad.  Is there anywhere I can find a detailed description or manual to do this?  I have the user set up correctly and the server is .local.  I keep getting "server not found" every time.  It appears I am not setting up the server name correctly or not typing it correctly.  I selected the "private" setting but I am keeping it local for now without turning on VPN.

Mac Mini with Lion Server, Mac OS X (10.7), 4GB Mem, 320GB Drive
  • Newtron40 Level 1 Level 1 (30 points)
    Currently Being Moderated
    Aug 12, 2011 8:04 PM (in response to hvail)

    On a basic level, here's what we did.... (I haven't messed with Profile manager yet and I think that controls individual access)

     

    Go into Server App / File sharing.  Find the share that you want to enable webdav and select it.  For example, some of the user home files to access for the marketing department are in /marketing_home.  Select the share and then click the edit pencil.  Select "share with iOS devices (webdav)".  Once that's on now you should be able to navigate to the share on your ipad, iphone, mac or windows desktop via http://my.server.com/webdav/short_user_name where my.server.com is your FQDN and of course Short_user_name is the short user name of the account to access.  Use the credentials assigned to that user for username and password.  This works in desktops via Finder / GO / Connect to Server and on windows machines you'll need to use "Map network drive".  I would suggest using SSL for encryption unless you're using it in a controlled environment.

     

     

    Hope this helps

    Nathan

  • ihazem Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 13, 2011 10:00 AM (in response to Newtron40)

    I have literally spent 2 days trying to setup Webdav on OSX Lion Server and it's driving me NUTS. Here is what I did:

     

    1. Install Lion Server (ok, no biggie)

    2. Setup directory server (Manage -> Manage Network Accounts)...so I can setup network users

    3. Create a user from the "Users" section

    4. Create a share from the "File Sharing" section and click on the "Share with iOS devices"

    5. Give the user I created in step 3 read/write access to that new share

     

    After all that (pretty simple), it should work, right?!

     

    So I go to my iPad, open Pages, click the "+" sign and click WebDav.

    Then I put the following in server: http://<ip>/webdav/<share_name>   ... is that right?!

    then use username/password for that user (same username when logging into system over the network)

    and it SHOULD work. but it DOESNT. AAAAHHHHH!!!

     

    Am I missing something. I'm really frustrated. Didn't think it would be an issue honestly.

     

    Any and all help is appreciated. Thanks!!!!!

     

    -H

  • ihazem Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 13, 2011 10:01 AM (in response to Newtron40)

    oh, and what's "short_user_name"? what do you mean by that?

     

    THANKS!

     

    -H

  • Newtron40 Level 1 Level 1 (30 points)
    Currently Being Moderated
    Aug 13, 2011 11:23 AM (in response to ihazem)

    This is by no means the only way to do this, but this is how we have it set up for our ipad sharing as of now with each user's home account. As I said before, I pretty sure Profile Manager changes all this and we have it turned off for now. I haven't had a chance to try making drop boxes and such to dig much deeper into this.

     

    Make sure you have web on in Server app and that you can get to your server on port 80 (http not blocked on firewall).  WebDAV uses port 80.

     

    You can't use the exact same login as you would signing into an iMac on the network. You'll need to use the short name for the username login.  In Server app, you'll want to right click on a user and select advanced options and look.  For a user named "John Brown", it will say the Account Name is: "johnbrown".  In Workgroup Manager on the users Basic pane, you'll see it called Short Name.  This is what you'll use to connect to the webdav both in the user name and the URL.

     

    In your step 4, you'll need to select the share that contains your user's home file.  You can see where your home is again in the advanced options at the bottom.  That's the share that you want to "share with iOS device".

     

    So in my example the URL should read:  http://servername.com/webdav/johnbrown    (where "johnbrown" is the short name of the user that owns a home file within the share you selected in File Sharing).  Your username will be "johnbrown" and just enter your password.

     

    Let me know

  • Nicki Rasmussen Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 13, 2011 12:08 PM (in response to Newtron40)

    Okay.

     

    I have the same problem.

     

    i have a domain called: nickrasmussen.dk

    and a user called michael.

     

    If he should access the WebDAV, is should be: http://www.nickirasmussen.dk/webdav/michael

    Right?

     

    But it dosn't work.

     

    Help please.

     

    I have done all that you have written.

  • Newtron40 Level 1 Level 1 (30 points)
    Currently Being Moderated
    Aug 13, 2011 12:23 PM (in response to Nicki Rasmussen)

    Nicki -  If you try to access from safari via http://www.nickirasmussen.dk/webdav what do you see? Do you get a login, error Forbidden or not found?

  • Newtron40 Level 1 Level 1 (30 points)
    Currently Being Moderated
    Aug 13, 2011 12:52 PM (in response to Newtron40)

    try restarting web services and restarting the machine and see how that goes

  • Newtron40 Level 1 Level 1 (30 points)
    Currently Being Moderated
    Aug 13, 2011 5:45 PM (in response to Newtron40)

    I had just a bit of time to explore this while I was rebuilding another server.....

     

    In addition, you should be able to see the share you got configured for webdav in the config files in /etc/apache2/httpd_webdavsharing_sharepoints.conf.  I wouldn't mess with this unless you know exactly what you're doing.

     

    For a dropbox.. or another type of shared folder the format is http://myserver.com/webdav/short_user_name/sharedfile.  Make sure you have permissions set in both file sharing and on the share itself.

     

    Seems to work great with the exception of an admin user account.  I can create a new account for me and it works fine, but if I use my admin account... no go.

  • ihazem Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 13, 2011 6:21 PM (in response to Nicki Rasmussen)

    Woohoo! Newtron40, you're awesome! It worked!!!! Now I'm not sure exactly which part of it was the key. Will do some testing tonight and will post again my findings and the exact steps to set this up. I am still shocked that there is NO documentation about how to do this. I looked everywhere. All the doc says is just "check the box", without every saying anything about the Web server having to be on or which username to use or that you have to put a /webdav after the hostname. ALL CRITICAL PIECES OF INFORMATION!!!!

     

    Thanks again for your help! Will post again shortly the solution and what exactly tripped me up.

     

    -H

  • Newtron40 Level 1 Level 1 (30 points)
    Currently Being Moderated
    Aug 13, 2011 9:47 PM (in response to ihazem)

    Glad to hear it's working for you. 

     

    The first thing to remember is that this is a .0 revision, meaning there are going to be miscues and problems. I've talked to Apple Enterprise about several other topics and they've been great, but I think they're having documentation issues as well.

     

    I believe (my opinion only) that while 10.7 was pretty ready on the client side (there are still some issues), that Lion server was rushed a bit.  It was in the press about holding up new hardware for the Lion release.  People normally will wait to purchase if a new hardware release is imminent.   So I think the documentation is lacking to some degree because of that. 

     

    If you don't have it, here's the link to the Advanced Server Administration for Lion:  https://help.apple.com/advancedserveradmin/mac/10.7/#

  • CAS3 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 14, 2011 3:25 PM (in response to Newtron40)

    Newtron40 - thanks for your help.  I am experiencing much the same problems described here.  I am pretty sure my problem has resulted from screwing up my short user name.  Is there any way to confirm what it is exactly?

  • Newtron40 Level 1 Level 1 (30 points)
    Currently Being Moderated
    Aug 15, 2011 1:09 AM (in response to CAS3)

    CAS3 -

    Your short username is automatically assigned and is the same thing as the username as opposed to the full name.   You can give your users more than one short name (I believe in server app it's called aliases).  If you open workgroup manager, find a user and click on them and look in the basic pane on the right you should see just above the passwords a box with Short Names:.  Apple is user friendly and therefore lets you do it both ways.... short names / usernames or Full Names for credentials.

     

    In Server App,

         go to your users,

         select a user and then right click on the user and select Advanced Options.  You'll see a box labeled Account Name.  This is the basic short name/username of the account.  There are no spaces.  But with that you should be able to log in via your regular name (ie.  John Brown)  or the short name (johnbrown).  If you give your account another alias (ie bubba) you should also be able to log in with that. 

     

    So try to log in with your short name associated with your account.  If it works, that's not the problem. 

  • Nicki Rasmussen Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 15, 2011 12:33 PM (in response to Newtron40)

    I see a not found page.

     

    Not Found

     

    The requested URL /webdav was not found on this server.

     

    Apache/2.2.19 (Unix) DAV/2 Server at www.nickirasmussen.dk Port 80

1 2 3 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (3)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.