libapache2-mod-dnssd setup for WebDAV ZeroConf

WebDAV Nav+ includes the ability to locate WebDAV shares on the local network using Bonjour/ZeroConf

In order to configure your Apache virtual host to be advertised by ZeroConf you need to install mod_dnssd

The following is a brief summary of configuring Apache with mod_dnssd on a Debian system

  • Install mod_dnssd
    apt-get install libapache2-mod-dnssd
  • Add a "Location" section to your virtual host declaration
    <VirtualHost *:80>
    .
    .
    .
    <Location /dav>
      DNSSDServiceName "WebDAV Folder"
      DNSSDServiceTypes _webdav._tcp
    </Location>
    .
    .
    .
    </VirtualHost> 
                      
  • Confirm that mod_dnssd is enabled in the configuration /etc/apache2/mods-enabled/mod-dnssd.conf
    a2enmod mod-dnssd
                      
  • Restart apache for the change to be loaded