Bonjour is a lovely technology. I would like all my custom vhosts on my mac (Snow Leopard) to broadcast via bonjour. What is the best way to do this, without having to enable for every vhost separately?
On debian i did:
this applies to all vhosts at once.
I'm going to be making the assumption you're using the built-in Apache Server, so...
If you open up your
The "other" directory contains both php.conf and bonjour.conf
Bonjour.conf has a few oddities though, for one, the default file does not include some of the possible options. As far as I know there are only three possible options:
This broadcasts the main site, not a VHost, and uses the machine's name (As defined by "Computer Name" in the sharing prefs) as the Bojour service title.
this takes one of three options:
The first two are self explanatory, but
This is probably the one you are looking for; it accepts two arguments, a service name and a path.
I would try placing a RegisterResource in each VHost, although I don't use VHosts and so I haven't tried it myself.
I have heard the the
Someone leaving a comment on the aforementioned page seemed to suggest VHost Bonjour is possible.
so best of luck!
Just to clarify, you want to register alternative A/CNAME records (eg: devsite1.local, devsite2.local, ...) for your machine so that other machines can access the virtual hosts you've created? There's no easy way to do this as the Bonjour API (unlike Avahi) doesn't allow arbitrary record names to be registered.