Took me a little while to get everything working with apache 2.2.9, WebDAV and a self signed certificate. Here's some of the gotchas I ran into:
1) Make sure your self signed certificate has not expired, mine had expired so I generated another one using openssl. I was getting an untrusted security certificate on the iPhone app before this. I would test the URL with safari first, it seems to give more detail about a certificate being invalid, expired or untrusted, where iPhone app seems to signal all exceptions with untrusted certificate error.
2) Here's my WebDAV configuration from the apache httpd.conf file
Alias /webdav /opt/WebDAV
DavLockDB /usr/local/apache2/var/DavLock
<Location /webdav>
Dav On
Order Allow,Deny
Allow from all
AuthType Basic
AuthName WebDAV-Realm
AuthUserFile /usr/webdav.passwd
Require valid-user
</Location>
BrowserMatch ^OmniFocus redirect-carefully
BrowserMatch ^CFNetwork redirect-carefully
### Make sure you create /usr/webdav.passwd using htpasswd
### Make sure you add the BrowserMatch lines to work around a 301 Moved Permanently issue. My iPhone was failing to sync before adding this.
Hope this helps someone
1) Make sure your self signed certificate has not expired, mine had expired so I generated another one using openssl. I was getting an untrusted security certificate on the iPhone app before this. I would test the URL with safari first, it seems to give more detail about a certificate being invalid, expired or untrusted, where iPhone app seems to signal all exceptions with untrusted certificate error.
2) Here's my WebDAV configuration from the apache httpd.conf file
Alias /webdav /opt/WebDAV
DavLockDB /usr/local/apache2/var/DavLock
<Location /webdav>
Dav On
Order Allow,Deny
Allow from all
AuthType Basic
AuthName WebDAV-Realm
AuthUserFile /usr/webdav.passwd
Require valid-user
</Location>
BrowserMatch ^OmniFocus redirect-carefully
BrowserMatch ^CFNetwork redirect-carefully
### Make sure you create /usr/webdav.passwd using htpasswd
### Make sure you add the BrowserMatch lines to work around a 301 Moved Permanently issue. My iPhone was failing to sync before adding this.
Hope this helps someone