Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > WebDAV and Lion Server

WebDAV and Lion Server
Thread Tools
Addicted to MacNN
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
Feb 14, 2012, 10:14 AM
 
Has anyone tried this out? I can't get it to work at all.
Console just keeps reporting:

webdavfs_agent: network_mount: WebDAV protocol not supported

when I connect from a Mac (also running Lion). Can't connect from iOS 5 iPhone 4S either.I've tried this on two different Lion Servers, its supposed to be simple.

I've checked permissions, I've inspected the httpd_webdavsharing_sharepoints.conf file, it all looks in order. Connect to server from Finder allows me to enter credentials but then says there was an error and to check the IP address (not helpful). I can connect fine using AFP etc.
I have plenty of more important things to do, if only I could bring myself to do them....
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Feb 14, 2012, 11:53 AM
 
What do your Apache logs say?
     
Addicted to MacNN
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
Feb 14, 2012, 12:10 PM
 
Well the apache access log says this when I attempt to log in:


"OPTIONS /movies/ HTTP/1.1" 200 - "-" "WebDAVFS/1.9.0 (01908000) Darwin/11.2.0 (x86_64)"

I can't see anything else there or in the error log which looks relevant (going by timestamp).

"Movies" is the name of the share I was trying to access but it doesn't seem to matter which share I go for. (/webdav/username/ doesn't work either)
I have plenty of more important things to do, if only I could bring myself to do them....
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Feb 14, 2012, 12:30 PM
 
Can you paste in your Apache WebDAV config? It should look something like the config in the full example here:

mod_dav - Apache HTTP Server

What happens when you try to access the URL through your web browser? Is the directory password protected? Basic auth, or something else?

Your full Apache config will answer these latter two questions...
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Feb 14, 2012, 12:45 PM
 
Check out the list of Apache modules that have been enabled too, I believe you'll need mod_dav enabled since it looks like WebDAVFS is just a client, so you'll need the server module enabled too.
     
Fresh-Faced Recruit
Join Date: Jan 2005
Location: Los Angeles, CA
Status: Offline
Reply With Quote
Feb 14, 2012, 04:18 PM
 
Shouldn't WebDAV be functional and enabled out of the box on Lion server?

It is always active to Snow Leopard server. (albeit it requires to be separately activated under Server Admin - the classic, older style server admin) for each domain that you share out.)

It may require being activated separately:

Server Admin --> Web --> Sites --> [click on site, or the default] --> Options tab --> WebDAV

Make sure that WebDAV checkbox is checked to be ON.
( Last edited by ZinkDifferent; Feb 14, 2012 at 04:27 PM. )
     
Fresh-Faced Recruit
Join Date: Jan 2005
Location: Los Angeles, CA
Status: Offline
Reply With Quote
Feb 15, 2012, 04:24 AM
 
Did any of this work?
     
Addicted to MacNN
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
Feb 15, 2012, 08:02 AM
 
LoadModule dav_module libexec/apache2/mod_dav.so

Is present in httpd.conf and is not commented out. As is

LoadModule dav_fs_module libexec/apache2/mod_dav_fs.so

You are correct that webdavfs is the client, the error I posted was from the client console log as it was the only relevant/helpful message I could find.
If I just type the server IP into Safari I get the default website (after a cert message) but if I use any of the webDAV specific URLs it doesn't find anything.

Zink, in Lion the webDAV is not specifically tied to a site, its implemented as an alternative filesharing protocol just like FTP, AFP or SMB. Using Server Admin to change the web server settings isn't even possible on Lion. Its all handled by the Server App which doesn't give any webDAV options under the web service settings at all, its handled under file sharing.

Thanks for the help guys. WebDAV config to follow in next post.
I have plenty of more important things to do, if only I could bring myself to do them....
     
Addicted to MacNN
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
Feb 15, 2012, 08:03 AM
 
Its in a separate file but I don't suppose that matters too much.

#
# Distributed authoring and versioning (WebDAV)
#
# Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias
# mod_auth_digest, mod_authn_file
#

# The following example gives DAV write access to a directory called
# "uploads" under the ServerRoot directory.
#
# The User/Group specified in httpd.conf needs to have write permissions
# on the directory where the DavLockDB is placed and on any directory where
# "Dav On" is specified.

DavLockDB "/usr/var/DavLock"

Alias /uploads "/usr/uploads"

<Directory "/usr/uploads">
Dav On

Order Allow,Deny
Allow from all

AuthType Digest
AuthName DAV-upload

# You can use the htdigest program to create the password database:
# htdigest -c "/usr/user.passwd" DAV-upload admin
AuthUserFile "/usr/user.passwd"
AuthDigestProvider file

# Allow universal read-access, but writes are restricted
# to the admin user.
<LimitExcept GET OPTIONS>
require user admin
</LimitExcept>
</Directory>

#
# The following directives disable redirects on non-GET requests for
# a directory that does not include the trailing slash. This fixes a
# problem with several clients that do not appropriately handle
# redirects for folders with DAV methods.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
All the required modules are set to load in httpd.conf
I have plenty of more important things to do, if only I could bring myself to do them....
     
Addicted to MacNN
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
Feb 15, 2012, 08:41 AM
 
Thought I'd check the permissions on the DavlockDB as per
# The User/Group specified in httpd.conf needs to have write permissions
# on the directory where the DavLockDB is placed and on any directory where
# "Dav On" is specified.

DavLockDB "/usr/var/DavLock"
/usr/var/ does not exist. Is that whats wrong here?
It doesn't help that Apple have restructured the Apache configs and not told anyone what they've done. If you have Lion, you should have the same config files though. The Server versions are no different.

Look in /etc/apache2/
I have plenty of more important things to do, if only I could bring myself to do them....
     
Addicted to MacNN
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
Feb 15, 2012, 09:10 AM
 
OK, I have it working now. Turns out its not an Apache problem, more a general networking problem. The hostname/IP to be exact. Still getting to grips with Lion Server and its little differences and quirks.

Thanks for your time chaps!
I have plenty of more important things to do, if only I could bring myself to do them....
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -4. The time now is 09:11 AM.
All contents of these forums © 1995-2014 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2014, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2