<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Joe Maller &#187; 10.5</title>
	<atom:link href="http://joemaller.com/tag/105/feed/" rel="self" type="application/rss+xml" />
	<link>http://joemaller.com</link>
	<description>.com</description>
	<lastBuildDate>Tue, 15 May 2012 03:40:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Multiple RegisterResource directives broken in Leopard</title>
		<link>http://joemaller.com/859/multiple-registerresource-directives-broken-in-leopard/</link>
		<comments>http://joemaller.com/859/multiple-registerresource-directives-broken-in-leopard/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 21:49:03 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[leopard]]></category>

		<guid isPermaLink="false">http://joemaller.com/2007/12/04/multiple-registerresource-directives-broken-in-leopard/</guid>
		<description><![CDATA[This is sort of a follow up on the old mod_rendezvous article I wrote for O&#8217;Reilly. While cleaning up my virtual hosts I discovered a bug in 10.5&#8242;s handling of multiple RegisterResource directives in mod_bonjour. This is expanded from a bug report I submitted to Apple (rdar://problem/5628484). I keep functional mirrors all my development sites [...]]]></description>
			<content:encoded><![CDATA[<p>This is sort of a follow up on the old <a href="http://www.macdevcenter.com/pub/a/mac/2003/04/08/mod_rendezvous.html">mod_rendezvous article I wrote for O&#8217;Reilly</a>. While cleaning up my virtual hosts I discovered a bug in 10.5&#8242;s handling of multiple RegisterResource directives in mod_bonjour. This is expanded from a bug report I submitted to Apple (rdar://problem/5628484).</p>
<p>I keep functional mirrors all my development sites in separate Apache Virtual Hosts. Each one then gets it&#8217;s own port, which allows me to check them on local networks, in Parallels and, if I want, remotely via IP address.</p>
<p>To advertise two local vhosts over bonjour, something like this in httpd.conf should work:</p>
<pre><code>&amp;lt;IfModule bonjour_module&amp;gt;
RegisterResource "Site 1" / 9001
RegisterResource "Site 2" / 9002
&amp;lt;/IfModule&amp;gt;</code></pre>
<p>After restarting Apache (<code>sudo apachectl graceful</code>), local copies of Safari should see the two sites, &#8220;Site 1&#8243; and &#8220;Site 2&#8243; in Bonjour bookmark listings. In 10.4, they show up. In 10.5, only &#8220;Site 2&#8243; shows up. No matter how many directives are included, only the last one will be visible.</p>
<p>I&#8217;d love to be wrong about this, but it seems that something broke this function in Leopard.</p>
<p>A faster way of checking Bonjour entries is to open a terminal window and run the following command:</p>
<p><code>mdns -B _http._tcp</code></p>
<p>That will show a live updating list of current multicast (Bonjour) entries. Under 10.4, I get the following after adding the above directives to httpd.conf:</p>
<pre><code>16:10:14.517  Add     0 local.     _http._tcp.     Site 1
16:10:14.667  Add     0 local.     _http._tcp.     Site 2</code></pre>
<p>However with 10.5, I get this:</p>
<pre><code>16:12:52.597  Add     1 local.     _http._tcp.     Site 2
16:12:52.598  Add     1 local.     _http._tcp.     Site 2
16:12:52.598  Add     0 local.     _http._tcp.     Site 2</code></pre>
<p>What I&#8217;d really love to do is figure out how to register and respond to multiple Bonjour names. That way I could have each vhost  be a named host and each staged site accessible at a url like site1.local and site2.local. So far I haven&#8217;t had any luck getting that working.</p>
]]></content:encoded>
			<wfw:commentRss>http://joemaller.com/859/multiple-registerresource-directives-broken-in-leopard/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 3/8 queries in 0.003 seconds using disk: basic
Object Caching 219/223 objects using disk: basic

Served from: joemaller.com @ 2012-05-23 18:49:59 -->
