 |
 |
WebDAV and Lion Server
|
 |
|
 |
|
Professional Poster
Join Date: Mar 2004
Location: UK
Status:
Offline
|
|
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.
|
|
MacBook 2.0GHz CD; MacBook Pro 15" 2.4GHz Late '08; PowerMac G4 MDD Dual 1GHz; 3x Xserve G4 1GHz; Mac Mini 2GHz; Big pile of broken and working bits;
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
What do your Apache logs say?
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Mar 2004
Location: UK
Status:
Offline
|
|
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)
|
|
MacBook 2.0GHz CD; MacBook Pro 15" 2.4GHz Late '08; PowerMac G4 MDD Dual 1GHz; 3x Xserve G4 1GHz; Mac Mini 2GHz; Big pile of broken and working bits;
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
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
|
|
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
|
|
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 03:27 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jan 2005
Location: Los Angeles, CA
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Mar 2004
Location: UK
Status:
Offline
|
|
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.
|
|
MacBook 2.0GHz CD; MacBook Pro 15" 2.4GHz Late '08; PowerMac G4 MDD Dual 1GHz; 3x Xserve G4 1GHz; Mac Mini 2GHz; Big pile of broken and working bits;
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Mar 2004
Location: UK
Status:
Offline
|
|
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
|
|
MacBook 2.0GHz CD; MacBook Pro 15" 2.4GHz Late '08; PowerMac G4 MDD Dual 1GHz; 3x Xserve G4 1GHz; Mac Mini 2GHz; Big pile of broken and working bits;
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Mar 2004
Location: UK
Status:
Offline
|
|
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/
|
|
MacBook 2.0GHz CD; MacBook Pro 15" 2.4GHz Late '08; PowerMac G4 MDD Dual 1GHz; 3x Xserve G4 1GHz; Mac Mini 2GHz; Big pile of broken and working bits;
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Mar 2004
Location: UK
Status:
Offline
|
|
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!
|
|
MacBook 2.0GHz CD; MacBook Pro 15" 2.4GHz Late '08; PowerMac G4 MDD Dual 1GHz; 3x Xserve G4 1GHz; Mac Mini 2GHz; Big pile of broken and working bits;
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|