レナート   Wunschkonzert, Ponyhof und Abenteuerspielplatz   ﻟﻴﻨﺎﺭﺕ

Thu, 19 Jan 2006

Avahi Support for Apache

The first release of mod_dnssd is now available. It adds DNS-SD based Zeroconf support to Apache 2.0 using Avahi.

This work has been inspired by Sander Temme's and Sebastien Estienne's mod_zeroconf module, but supersedes it in every way. MacOSX ships with mod_rendezvous/mod_bonjour, but mod_dnssd is much more powerful than this piece of software as well. In short: mod_dnssd is definitely the greatest way to add Zeroconf support to Apache available today.

A few examples just to show how great mod_dnssd is:

DNSSDEnable On

This is everything you need to enable DNS-SD support in Apache after loading the module. It will publish all virtual hosts and all existing mod_userdir directories (i.e. ~/public_html) as services of type _http._tcp.

In case you want to publish some subdirectory of the web server as service, just place DNSSDServiceName inside a <Location> section for that path:

<Location /foobar>
	DNSSDServiceName "A special service called foobar"
</Location>

You can even use it to publish WebDAV shares using Apache's mod_dav module:

<Location /webdav>
	Dav On
	DNSSDServiceName "A WebDAV folder"
	DNSSDServiceTypes _webdav._tcp
</Location>

This especially cool since we now have a free software server counterpart for Gnome's and KDE's WebDAV client functionality.

Or to publish your blog as RSS service:

<Location /blog.cgi?rss>
	DNSSDServiceName "The blog"
	DNSSDServiceTypes _rss._tcp
</Location>

Get it while it is hot!

posted at: 16:53 | path: /projects | permanent link to this entry | 5 comments


Posted by christian at Wed Sep 13 19:19:14 2006
tried to install it on my Fedora5 box.
./configure stops with "Sorry you need apache 2".
Apache V 2.2.2 is isstalled...

Posted by jerm at Thu Oct 25 15:07:26 2007
Is it possible to compile and run this on MacOSX?

Posted by BOK at Sun Mar 1 13:51:40 2009
Compilation an installation OK on FreeBSD-6.4, but I run into this error:

Cannot load /usr/local/libexec/apache22/mod_dnssd.so into server: /usr/local/lib/libavahi-common.so.3: Undefined symbol "libintl_bindtextdomain"

Any ideas? Thanks.

Posted by Fabien at Fri Oct 15 19:48:52 2010
Hi,
i try to use this module on an Ubuntu 10.04 (package provided with APT). and i've an error with the virtual hosts i declared to Apache (i have a 'sites-available' file for each virtual host).
The error appears in a client PC using avahi-discover :
Error: org.freedesktop.Avahi.TimeoutError: Timeout reached

Posted by Fabien at Thu Nov 25 22:41:19 2010
Ok, after many tests, searches and readings i found a work around to my problem.
I use this module to advertise multiple virtual host i.e. aliases to my host.
Unfortunately, this mod doesn't deal with that, and doesn't register itself the CNAME's aliases (sorry if my explanations are not  very precises). So i have to run the "PythonPublishAlias" script to publish the alias defined with the VirtualHost/ServerName directive.
That's all but the http://www.avahi.org/ticket/101 will be a very good enhancement.

Leave a Comment:

Your Name:


Your E-mail (optional):


Comment:


As a protection against comment spam, please type the following number into the field on the right:
Secret Number Image

Please note that this is neither a support forum nor a bug tracker! Support questions or bug reports posted here will be ignored and not responded to!


It should be obvious but in case it isn't: the opinions reflected here are my own. They are not the views of my employer, or Ronald McDonald, or anyone else.

Please note that I take the liberty to delete any comments posted here that I deem inappropriate, off-topic, or insulting. And I excercise this liberty quite agressively. So yes, if you comment here, I might censor you. If you don't want to be censored your are welcome to comment on your own blog instead.


Lennart Poettering <mzoybt (at) 0pointer (dot) net>
Syndicated on Planet GNOME, Planet Fedora, planet.freedesktop.org, Planet Debian Upstream. feed RSS 0.91, RSS 2.0
Archives: 2005, 2006, 2007, 2008, 2009, 2010, 2011

Valid XHTML 1.0 Strict!   Valid CSS!