<?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: Amazon S3 Gotcha: Using Virtual Host URLs with HTTPS</title> <atom:link href="http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html/feed" rel="self" type="application/rss+xml" /><link>http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html</link> <description>Cloud Developer Tips: Practical tips for developers of cloud computing applications.</description> <lastBuildDate>Tue, 31 Jan 2012 07:15:49 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Garve</title><link>http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html/comment-page-1#comment-865</link> <dc:creator>Garve</dc:creator> <pubDate>Thu, 05 Jan 2012 15:28:33 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=15#comment-865</guid> <description>I think you&#039;re right. It&#039;s an EU bucket, but I was using S3Fox (Firefox plugin) and the URL it generates uses the main Amazon S3 root domain instead of the correct one for the bucket.I tried again using the Amazon Console, and it gave me the correct https://s3-eu-west-1.amazonaws.com URL.cheersGarve</description> <content:encoded><![CDATA[<p>I think you&#8217;re right. It&#8217;s an EU bucket, but I was using S3Fox (Firefox plugin) and the URL it generates uses the main Amazon S3 root domain instead of the correct one for the bucket.</p><p>I tried again using the Amazon Console, and it gave me the correct <a
href="https://s3-eu-west-1.amazonaws.com" rel="nofollow">https://s3-eu-west-1.amazonaws.com</a> URL.</p><p>cheers</p><p>Garve</p> ]]></content:encoded> </item> <item><title>By: shlomo</title><link>http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html/comment-page-1#comment-864</link> <dc:creator>shlomo</dc:creator> <pubDate>Thu, 05 Jan 2012 14:54:56 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=15#comment-864</guid> <description>@Garve,I&#039;m glad this article saved you time.The error you mention, &quot;The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.&quot; happens when you use the wrong region&#039;s endpoint to access a bucket that was created in a different region. Perhaps you created the bucket in the EU region and were trying to use the .s3.amazonaws.com endpoint?&lt;a href=&quot;http://docs.amazonwebservices.com/AmazonS3/latest/dev/VirtualHosting.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;This page&lt;/a&gt; in the S3 docs explains as follows:&lt;blockquote&gt;Amazon S3 supports virtual-hosted-style and path-style access in all Regions. The path-style syntax, however, requires that you use the region-specific endpoint when attempting to access a bucket. For example, if you have a bucket called mybucket that resides in the EU, you want to use path-style syntax, and the object is named puppy.jpg, the correct URI is http://s3-eu-west-1.amazonaws.com/mybucket/puppy.jpg. You will receive a “PermanentRedirect” error, an HTTP response code 301, and a message indicating what the correct URI is for your resource if you try to access a non US Standard bucket with path-style syntax using:
&lt;ul&gt;&lt;li&gt;http://s3.amazonaws.com&lt;/li&gt;
&lt;li&gt;A different Region endpoint than where the bucket resides, for example, http://s3-euwest-1.amazonaws.com and the bucket was created with the location constraint of Northern-California&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;</description> <content:encoded><![CDATA[<p>@Garve,</p><p>I&#8217;m glad this article saved you time.</p><p>The error you mention, &#8220;The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.&#8221; happens when you use the wrong region&#8217;s endpoint to access a bucket that was created in a different region. Perhaps you created the bucket in the EU region and were trying to use the .s3.amazonaws.com endpoint?</p><p><a
href="http://docs.amazonwebservices.com/AmazonS3/latest/dev/VirtualHosting.html" target="_blank" rel="nofollow">This page</a> in the S3 docs explains as follows:</p><blockquote><p>Amazon S3 supports virtual-hosted-style and path-style access in all Regions. The path-style syntax, however, requires that you use the region-specific endpoint when attempting to access a bucket. For example, if you have a bucket called mybucket that resides in the EU, you want to use path-style syntax, and the object is named puppy.jpg, the correct URI is <a
href="http://s3-eu-west-1.amazonaws.com/mybucket/puppy.jpg" rel="nofollow">http://s3-eu-west-1.amazonaws.com/mybucket/puppy.jpg</a>. You will receive a “PermanentRedirect” error, an HTTP response code 301, and a message indicating what the correct URI is for your resource if you try to access a non US Standard bucket with path-style syntax using:</p><ul><li><a
href="http://s3.amazonaws.com" rel="nofollow">http://s3.amazonaws.com</a></li><li>A different Region endpoint than where the bucket resides, for example, <a
href="http://s3-euwest-1.amazonaws.com" rel="nofollow">http://s3-euwest-1.amazonaws.com</a> and the bucket was created with the location constraint of Northern-California</li></ul></blockquote> ]]></content:encoded> </item> <item><title>By: Garve</title><link>http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html/comment-page-1#comment-863</link> <dc:creator>Garve</dc:creator> <pubDate>Thu, 05 Jan 2012 13:18:46 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=15#comment-863</guid> <description>Thanks, this article was very helpful in identifying the problem I was having when using a bucket on S3 with a period (.) in the bucket name.The error I was getting:
The certificate is only valid for the following domain names:
*.s3.amazonaws.com , s3.amazonaws.comI had wondered if the extra space before the comma in the above error had mean a trailing space had been inserted in the certificate details, and could have spent a long time on a wild goose chase, but your article saved me from that.I tried placing my bucket name with the period after the trailing slash (the first option you suggest), but got the error:
The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.So in the end I took the simple option of creating a new bucket with no period in the name, and that&#039;s worked fine.cheersGarve</description> <content:encoded><![CDATA[<p>Thanks, this article was very helpful in identifying the problem I was having when using a bucket on S3 with a period (.) in the bucket name.</p><p>The error I was getting:<br
/> The certificate is only valid for the following domain names:<br
/> *.s3.amazonaws.com , s3.amazonaws.com</p><p>I had wondered if the extra space before the comma in the above error had mean a trailing space had been inserted in the certificate details, and could have spent a long time on a wild goose chase, but your article saved me from that.</p><p>I tried placing my bucket name with the period after the trailing slash (the first option you suggest), but got the error:<br
/> The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</p><p>So in the end I took the simple option of creating a new bucket with no period in the name, and that&#8217;s worked fine.</p><p>cheers</p><p>Garve</p> ]]></content:encoded> </item> <item><title>By: shlomo</title><link>http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html/comment-page-1#comment-664</link> <dc:creator>shlomo</dc:creator> <pubDate>Mon, 29 Aug 2011 14:10:01 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=15#comment-664</guid> <description>@Callum,Thanks. I have updated the article with the corrected link.</description> <content:encoded><![CDATA[<p>@Callum,</p><p>Thanks. I have updated the article with the corrected link.</p> ]]></content:encoded> </item> <item><title>By: Callum</title><link>http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html/comment-page-1#comment-663</link> <dc:creator>Callum</dc:creator> <pubDate>Mon, 29 Aug 2011 11:16:37 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=15#comment-663</guid> <description>Thanks for posting an article that&#039;s still useful 2 years later. I think the amazon docs link has changed, I believe the new link is:
http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?BucketConfiguration.html</description> <content:encoded><![CDATA[<p>Thanks for posting an article that&#8217;s still useful 2 years later. I think the amazon docs link has changed, I believe the new link is:<br
/> <a
href="http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?BucketConfiguration.html" rel="nofollow">http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?BucketConfiguration.html</a></p> ]]></content:encoded> </item> <item><title>By: shlomo</title><link>http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html/comment-page-1#comment-658</link> <dc:creator>shlomo</dc:creator> <pubDate>Thu, 04 Aug 2011 05:30:09 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=15#comment-658</guid> <description>@Ashok,For content hosted in S3 you don&#039;t use your site&#039;s SSL certificate: Amazon uses its own SSL certificate for serving S3-based content. That&#039;s one of the reasons why you need to use the techniques described in this article.</description> <content:encoded><![CDATA[<p>@Ashok,</p><p>For content hosted in S3 you don&#8217;t use your site&#8217;s SSL certificate: Amazon uses its own SSL certificate for serving S3-based content. That&#8217;s one of the reasons why you need to use the techniques described in this article.</p> ]]></content:encoded> </item> <item><title>By: Ashok</title><link>http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html/comment-page-1#comment-657</link> <dc:creator>Ashok</dc:creator> <pubDate>Wed, 03 Aug 2011 17:30:29 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=15#comment-657</guid> <description>I have to apply ssl on s3 bucket. but i don&#039;t where i store my ssl certificate on s3.</description> <content:encoded><![CDATA[<p>I have to apply ssl on s3 bucket. but i don&#8217;t where i store my ssl certificate on s3.</p> ]]></content:encoded> </item> <item><title>By: shlomo</title><link>http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html/comment-page-1#comment-410</link> <dc:creator>shlomo</dc:creator> <pubDate>Sun, 12 Sep 2010 05:37:51 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=15#comment-410</guid> <description>@Sean Fitzgerald,True, the RFC specifies the behavior, but browsers are not always fully RFC compliant. Older versions of Firefox used to happily accept a certificate issued to &lt;code&gt;*.mydomain.com&lt;/code&gt; for a request to &lt;code&gt;*.subdomain.mydomain.com&lt;/code&gt;.</description> <content:encoded><![CDATA[<p>@Sean Fitzgerald,</p><p>True, the RFC specifies the behavior, but browsers are not always fully RFC compliant. Older versions of Firefox used to happily accept a certificate issued to <code>*.mydomain.com</code> for a request to <code>*.subdomain.mydomain.com</code>.</p> ]]></content:encoded> </item> <item><title>By: Sean Fitzgerald</title><link>http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html/comment-page-1#comment-408</link> <dc:creator>Sean Fitzgerald</dc:creator> <pubDate>Fri, 10 Sep 2010 21:54:27 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=15#comment-408</guid> <description>I realize this post is kind of old, but I thought I would add a little bit of info to this thread. It&#039;s not so much a decision of browser implementors for this use case. The spec ( http://www.ietf.org/rfc/rfc2818.txt ) specifically states that foo.a.com matches *.a.com, and foo.bar.a.com does not.There&#039;s also the possibility of CA&#039;s offering certificates that match to *.*.(yadda yadda), but that would undercut their sales of *.foo.a.com certs, wouldn&#039;t it?</description> <content:encoded><![CDATA[<p>I realize this post is kind of old, but I thought I would add a little bit of info to this thread. It&#8217;s not so much a decision of browser implementors for this use case. The spec ( <a
href="http://www.ietf.org/rfc/rfc2818.txt" rel="nofollow">http://www.ietf.org/rfc/rfc2818.txt</a> ) specifically states that foo.a.com matches *.a.com, and foo.bar.a.com does not.</p><p>There&#8217;s also the possibility of CA&#8217;s offering certificates that match to *.*.(yadda yadda), but that would undercut their sales of *.foo.a.com certs, wouldn&#8217;t it?</p> ]]></content:encoded> </item> <item><title>By: William</title><link>http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html/comment-page-1#comment-42</link> <dc:creator>William</dc:creator> <pubDate>Wed, 23 Sep 2009 21:29:50 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=15#comment-42</guid> <description>Just came into the same problem with Amazon S3. I had no idea about the method of doing http://s3.amazonaws.com/mybucket.mydomain.com/myObjectKey over the normal one.&lt;br /&gt;&lt;br /&gt;Thanks</description> <content:encoded><![CDATA[<p>Just came into the same problem with Amazon S3. I had no idea about the method of doing <a
href="http://s3.amazonaws.com/mybucket.mydomain.com/myObjectKey" rel="nofollow">http://s3.amazonaws.com/mybucket.mydomain.com/myObjectKey</a> over the normal one.</p><p>Thanks</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 5/19 queries in 0.013 seconds using disk: basic
Object Caching 400/413 objects using disk: basic
Content Delivery Network via Amazon Web Services: S3: blogstatic.shlomoswidler.com.s3.amazonaws.com

Served from: shlomoswidler.com @ 2012-02-04 22:25:15 -->
