<p>Is there a way to make S3 default to an index.html page?  E.g.: My bucket object listing:</p>

<pre><code>/index.html
/favicon.ico
/images/logo.gif
</code></pre>

<p>A call to <strong>www.example.com/<em>index.html</em></strong> works great!  But if one were to call <strong>www.example.com/</strong> we'd either get a 403 or a REST object listing XML document depending on how bucket-level ACL was configured.</p>

<p>So, the question: Is there a way to have index.html functionality with content hosted on S3?</p>

[{'answer_id': 27922, 'author': 'yoavf', 'author_id': 1011, 'author_profile': 'https://Stackoverflow.com/users/1011', 'pm_score': 2, 'selected': False, 'text': '<p>I would suggest reading <a href="http://developer.amazonwebservices.com/connect/thread.jspa?threadID=10849&amp;start=0&amp;tstart=0" rel="nofollow noreferrer">this thread</a> from 2006 (On Amazon web services developers connection). It seems there\'s no easy solution to this.</p>\n'}, {'answer_id': 2879970, 'author': 'nick', 'author_id': 346817, 'author_profile': 'https://Stackoverflow.com/users/346817', 'pm_score': 0, 'selected': False, 'text': '<p>you can do it using dns webforwards and cloaking.  just forward to the complete path of the index.html</p>\n\n<p>www.example.com forwards to <a href="http://www.example.com.s3.amazonaws.com" rel="nofollow noreferrer">http://www.example.com.s3.amazonaws.com</a> and make sure you cloak the output.</p>\n'}, {'answer_id': 3436768, 'author': 'Amaroom', 'author_id': 414638, 'author_profile': 'https://Stackoverflow.com/users/414638', 'pm_score': 2, 'selected': False, 'text': '<p>Yes. using AWS Cloudfront lets you assign a default file.</p>\n'}, {'answer_id': 4474914, 'author': 'Naszta', 'author_id': 463680, 'author_profile': 'https://Stackoverflow.com/users/463680', 'pm_score': 2, 'selected': False, 'text': '<p>You can easily solve it by Amazon CloudFront <a href="http://aws.amazon.com/cloudfront/" rel="nofollow">link</a>. At Amazon CloudFront you could modify the root object. You can download manager here: m1.mycloudbuddy.com/downloads.html.</p>\n'}, {'answer_id': 5040105, 'author': 'Alex Jasmin', 'author_id': 162407, 'author_profile': 'https://Stackoverflow.com/users/162407', 'pm_score': 6, 'selected': True, 'text': '<p>Amazon S3 now supports <a href="http://docs.amazonwebservices.com/AmazonS3/latest/dev/IndexDocumentSupport.html" rel="noreferrer">Index Documents</a></p>\n\n<p>The <em>index document</em> for a bucket can be set to something like <code>index.html</code>. When accessing the root of the site or a sub-directory containing a document of that name that document is returned.</p>\n\n<p>It is extremely easy to do using the aws cli:</p>\n\n<pre><code>aws s3 website $MY_BUCKET_NAME --index-document index.html\n</code></pre>\n\n<p>You can set the <em>index document</em> from the AWS Management Console:</p>\n\n<p><img src="https://i.stack.imgur.com/HALQp.png" alt="enter image description here"></p>\n'}, {'answer_id': 24377823, 'author': 'fiatjaf', 'author_id': 973380, 'author_profile': 'https://Stackoverflow.com/users/973380', 'pm_score': 6, 'selected': False, 'text': '<p>For people still struggling against this after 3 years, let me add some important information:</p>\n\n<p>The URL for your website (and to which you have to point your DNS) is not </p>\n\n<p><code>&lt;bucket_name&gt;.s3-us-west-2.amazonaws.com</code>, but</p>\n\n<p><code>&lt;bucket_name&gt;.s3-website-us-west-2.amazonaws.com</code>.</p>\n\n<p>If you use the first, it will not work as intended, no matter how much you config the <a href="http://docs.aws.amazon.com/AmazonS3/latest/dev/IndexDocumentSupport.html" rel="noreferrer">Index document</a>.</p>\n\n<p>For a specific example, consider:</p>\n\n<ul>\n<li><a href="http://www-example-com.s3.amazonaws.com/index.html" rel="noreferrer">http://www-example-com.s3.amazonaws.com/index.html</a> works.</li>\n<li><a href="http://www-example-com.s3.amazonaws.com/" rel="noreferrer">http://www-example-com.s3.amazonaws.com/</a> fails with <code>AccessDenied</code>.</li>\n<li><a href="http://www-example-com.s3-website-us-west-2.amazonaws.com/" rel="noreferrer">http://www-example-com.s3-website-us-west-2.amazonaws.com/</a> works!</li>\n</ul>\n\n<p>To get your true website address, go to your <a href="https://console.aws.amazon.com/s3/home" rel="noreferrer">S3 Management Console</a>, select the target bucket, then <code>Properties</code>, then <code>Static Website Hosting</code>. It will show the website URL that will work.</p>\n'}, {'answer_id': 44574109, 'author': 'bhar1red', 'author_id': 3086531, 'author_profile': 'https://Stackoverflow.com/users/3086531', 'pm_score': 2, 'selected': False, 'text': '<p>Since It\'s been long time, this question being asked, and Amazon S3 changing their Interface. I would like to answer with updated screenshots.</p>\n\n<p>We need to enable \'static web hosting\' for S3 to serve as web hosting. \n- Go to Properties -> click on static web hosting -> Select \'use this bucket to host a website\' \n- Enter the index document (index.html by default),  error document and redirection rules, if any. \n<img src="https://i.stack.imgur.com/aoNWq.png" alt="Selecting static web hosting"></p>\n\n<p><img src="https://i.stack.imgur.com/AxdTs.png" alt="use-this-bucket-to-host-a-website"></p>\n\n<p>As answered in <a href="https://stackoverflow.com/a/24377823/3086531">this answer on Stack Overflow</a>, web hosting link would be: <a href="http://bucket-name.s3-website-region.amazonaws.com" rel="nofollow noreferrer">http://bucket-name.s3-website-region.amazonaws.com</a></p>\n'}]
['https://Stackoverflow.com/questions/27899', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2961/']