<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using ELB to Serve Multiple Domains Over SSL on EC2 for Giggles and Unicorns</title>
	<atom:link href="http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/feed/" rel="self" type="application/rss+xml" />
	<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/</link>
	<description>Those who can make you believe absurdities can make you commit atrocities. —Voltaire</description>
	<lastBuildDate>Wed, 01 Sep 2010 15:37:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: james</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10516</link>
		<dc:creator>james</dc:creator>
		<pubDate>Fri, 16 Jul 2010 00:19:46 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10516</guid>
		<description>This is one of those cases where the CLI tools offer more functionality than the AWS console or Elasticfox. Glad it worked out for you, though!</description>
		<content:encoded><![CDATA[<p>This is one of those cases where the CLI tools offer more functionality than the AWS console or Elasticfox. Glad it worked out for you, though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10513</link>
		<dc:creator>Vince</dc:creator>
		<pubDate>Thu, 15 Jul 2010 12:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10513</guid>
		<description>Thank You!!!

We definitely use the command line tools for a lot of things, but I never tried to create an ELB from the CLI tools. We were using the Amazon Control Panel web app to create our load balancers. In the AWS control panel, when you try to create an ELB it will only show you instances that are not already assigned to a load balancer. So we just assumed it couldn&#039;t be done. 

Thanks to your post, I created a new ELB using the CLI tools and was able to do just that!

In case anyone is interested, we were previously using this method with a multi-domain certificate: http://blog.revolunet.com/index.php/reseau/administration/hosting-multiple-ssl-vhosts-on-a-single-ipportcertificate-with-apache2</description>
		<content:encoded><![CDATA[<p>Thank You!!!</p>
<p>We definitely use the command line tools for a lot of things, but I never tried to create an ELB from the CLI tools. We were using the Amazon Control Panel web app to create our load balancers. In the AWS control panel, when you try to create an ELB it will only show you instances that are not already assigned to a load balancer. So we just assumed it couldn&#8217;t be done. </p>
<p>Thanks to your post, I created a new ELB using the CLI tools and was able to do just that!</p>
<p>In case anyone is interested, we were previously using this method with a multi-domain certificate: <a href="http://blog.revolunet.com/index.php/reseau/administration/hosting-multiple-ssl-vhosts-on-a-single-ipportcertificate-with-apache2" rel="nofollow">http://blog.revolunet.com/index.php/reseau/administration/hosting-multiple-ssl-vhosts-on-a-single-ipportcertificate-with-apache2</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10512</link>
		<dc:creator>james</dc:creator>
		<pubDate>Thu, 15 Jul 2010 10:46:51 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10512</guid>
		<description>Correct, just like in the example we are using multiple ELBs and CNames in front of several instances running apache. Each instance is joined to each ELB with port 443 mapping to the corresponding port for that wildcard cert (ie  superawesomefuntime.com has an ELB listener of 443 mapping to 8443 and unicorns-unlimited.com has an ELB listener of 443 mapping to 8445). 

To handle failure we scripted an up or down state for port 80 which ELB is listening to for the health check, if our app fails then that health check will fail and the server is pulled out of all the balancers. For example:

elb-configure-healthcheck  superawesome  --headers --target &quot;HTTP:80/health&quot; --interval 5 --timeout 4 --unhealthy-threshold 2 --healthy-threshold 2

That will have ELB check http://[ec2-public-address]:80/health and if it returns anything other than 200 it stops serving traffic from it. We also use this method to do rolling deploys through the stack while still keeping the site online.</description>
		<content:encoded><![CDATA[<p>Correct, just like in the example we are using multiple ELBs and CNames in front of several instances running apache. Each instance is joined to each ELB with port 443 mapping to the corresponding port for that wildcard cert (ie  superawesomefuntime.com has an ELB listener of 443 mapping to 8443 and unicorns-unlimited.com has an ELB listener of 443 mapping to 8445). </p>
<p>To handle failure we scripted an up or down state for port 80 which ELB is listening to for the health check, if our app fails then that health check will fail and the server is pulled out of all the balancers. For example:</p>
<p>elb-configure-healthcheck  superawesome  &#8211;headers &#8211;target &#8220;HTTP:80/health&#8221; &#8211;interval 5 &#8211;timeout 4 &#8211;unhealthy-threshold 2 &#8211;healthy-threshold 2</p>
<p>That will have ELB check <a href="http://ec2-public-address:80/health" rel="nofollow">http://ec2-public-address:80/health</a> and if it returns anything other than 200 it stops serving traffic from it. We also use this method to do rolling deploys through the stack while still keeping the site online.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10511</link>
		<dc:creator>Vince</dc:creator>
		<pubDate>Thu, 15 Jul 2010 01:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10511</guid>
		<description>@james: Are you saying that you are able to create more than one ELB that points to the same EC2 Instance?</description>
		<content:encoded><![CDATA[<p>@james: Are you saying that you are able to create more than one ELB that points to the same EC2 Instance?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10510</link>
		<dc:creator>james</dc:creator>
		<pubDate>Wed, 14 Jul 2010 21:05:34 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10510</guid>
		<description>We use multiple ELB&#039;s to do this. </description>
		<content:encoded><![CDATA[<p>We use multiple ELB&#8217;s to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10509</link>
		<dc:creator>Vince</dc:creator>
		<pubDate>Wed, 14 Jul 2010 19:16:08 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10509</guid>
		<description>This only allows one additional SSL site on the box because an instance can only be assigned to a load balancer once. 

Therefore, a multi-domain certificate is still the only answer at this time for hosting more than 2 SSL sites on one server.</description>
		<content:encoded><![CDATA[<p>This only allows one additional SSL site on the box because an instance can only be assigned to a load balancer once. </p>
<p>Therefore, a multi-domain certificate is still the only answer at this time for hosting more than 2 SSL sites on one server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10291</link>
		<dc:creator>james</dc:creator>
		<pubDate>Thu, 25 Mar 2010 18:09:33 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10291</guid>
		<description>As I understand the DNS RFC (shaky at best!), the root record need to be an A record and that CNAMEs require no other entries with the same name. Here&#039;s the two resources I&#039;m getting this from: &lt;a href=&quot;https://support.dnsmadeeasy.com/index.php?_m=knowledgebase&amp;_a=viewarticle&amp;kbarticleid=14&quot; rel=&quot;nofollow&quot;&gt;Why can&#039;t I create a CNAME record for the root record?&lt;/a&gt; and &lt;a href=&quot;http://www.faqs.org/rfcs/rfc1034.html&quot; rel=&quot;nofollow&quot;&gt;RFC1034 - Domain names - concepts and facilities&lt;/a&gt; (compelling title...). That said, trawling the EC2 boards indicates that AWS is at least mulling the idea of allowing ELB to have static IPs which would go a long way to solving the whole RR issue.

tl;dr -- I have no tricks for forcing a CNAME as a RR. :-(</description>
		<content:encoded><![CDATA[<p>As I understand the DNS RFC (shaky at best!), the root record need to be an A record and that CNAMEs require no other entries with the same name. Here&#8217;s the two resources I&#8217;m getting this from: <a href="https://support.dnsmadeeasy.com/index.php?_m=knowledgebase&amp;_a=viewarticle&amp;kbarticleid=14" rel="nofollow">Why can&#8217;t I create a CNAME record for the root record?</a> and <a href="http://www.faqs.org/rfcs/rfc1034.html" rel="nofollow">RFC1034 &#8211; Domain names &#8211; concepts and facilities</a> (compelling title&#8230;). That said, trawling the EC2 boards indicates that AWS is at least mulling the idea of allowing ELB to have static IPs which would go a long way to solving the whole RR issue.</p>
<p>tl;dr &#8212; I have no tricks for forcing a CNAME as a RR. <img src='http://elwoodicious.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10290</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 25 Mar 2010 17:24:21 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10290</guid>
		<description>Thanks for the post James.  One issue I&#039;m running into is that I cannot assign a CNAME record for my root domain to point to the ELB host.  In the context of your tutorial, I want my DNS to point superawesomefuntime.com to the CNAME superawesome-123456789.us-east-1.elb.amazonaws.com .  This is possible for the subdomain &quot;www&quot;  but as far as i know it&#039;s not possible for the root of the domain.  This means that https://www.superawesomefuntime.com would work but https://superawesomefuntime.com would not work.  Got any ideas?</description>
		<content:encoded><![CDATA[<p>Thanks for the post James.  One issue I&#8217;m running into is that I cannot assign a CNAME record for my root domain to point to the ELB host.  In the context of your tutorial, I want my DNS to point superawesomefuntime.com to the CNAME superawesome-123456789.us-east-1.elb.amazonaws.com .  This is possible for the subdomain &#8220;www&#8221;  but as far as i know it&#8217;s not possible for the root of the domain.  This means that <a href="https://www.superawesomefuntime.com" rel="nofollow">https://www.superawesomefuntime.com</a> would work but <a href="https://superawesomefuntime.com" rel="nofollow">https://superawesomefuntime.com</a> would not work.  Got any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Regi</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10288</link>
		<dc:creator>Regi</dc:creator>
		<pubDate>Fri, 19 Mar 2010 14:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10288</guid>
		<description>Thanks!!</description>
		<content:encoded><![CDATA[<p>Thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10287</link>
		<dc:creator>james</dc:creator>
		<pubDate>Fri, 19 Mar 2010 14:39:44 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10287</guid>
		<description>We are using Zone Edit and the way we handled this was to set up a web forward for the root to www to get around that issue.  :-D</description>
		<content:encoded><![CDATA[<p>We are using Zone Edit and the way we handled this was to set up a web forward for the root to www to get around that issue.  <img src='http://elwoodicious.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
