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.
Downloads
- mod_bonjour.so.zip v2 (Universal 32/64-bit for Mac OS X 10.5)
- mod_bonjour.patch v2 against apache_mod_bonjour-9.tar.gz
Installation
Place mod_bonjour.so in a reasonable location, such as:
/usr/local/libexec/apache2/mod_bonjour.so
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/mod_bonjour.so LoadModule bonjour_module /usr/local/libexec/apache2/mod_bonjour.so
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
History
- v2 - Fixed pool allocation problem, which caused random resource corruption.