'Enable serving a static website.
:param container: Container instance
:type container: :class:`Container`
:param index_file: Name of the object which becomes an index page for
every sub-directory in this container.
:type index_file: ``str``
:rtype: ``bool``'

def ex_enable_static_website(self, container, index_file='index.html'):

    container_name = container.name
    headers = {'X-Container-Meta-Web-Index': index_file}
    response = self.connection.request(('/%s' % container_name), method='POST', headers=headers, cdn_request=False)
    return (response.status in [httplib.CREATED, httplib.ACCEPTED])
