Multiple RegisterResource Directives Fix
for Mac OS X 10.5 Leopard's Apache 2 Bonjour Module

In Mac OS X 10.5 Leopard (as of 10.5.5), the Apache 2 Bonjour Module incorrectly handles multiple RegisterResource directives. Instead of registering all the requested Bonjour names, only the last RegisterResource directive is registered.

This problem has been reported to Apple by Joe Maller, but has not yet been fixed. The following fix is meant as a stop-gap, until Apple releases an update. Please send comments and bug reports to Chuck Houpt.



Place in a reasonable location, such as: /usr/local/libexec/apache2/

In /etc/apache2/httpd.conf, comment out the original LoadModule directive for Bonjour, and add one pointing to the local patched version:

# LoadModule bonjour_module libexec/apache2/
LoadModule bonjour_module /usr/local/libexec/apache2/

Check to make sure Apache can load the new configuration with:

$ apachectl configtest

Now restart Apache, and all RegisterResource directives will create Bonjour resources.

Happy Multicasting - Chuck