Firstly install foxmarks – this provides a firefox addon which allows you to upload/sync your bookmarks with foxmarks site, however it’s nice that they’ve also added a way by which you can add your own server (either ftp, http, or https) to upload them too!
This is as simple as configuring webDAV:-
<Location /webdav>
DAV On
AuthType Digest
AuthName "webdav-example"
AuthDigestFile /home/www/digest-password
Require valid-user
</Location>
Then configure the foxmarks client to use your username/password and the URL that you’ve set up above – when you hit sync you should then see a foxmarks.xml in your webdav’ed directory