Example 1.16. Make container publicly readable
Make the container publicly readable. Once the container is publicly readable, you may access your objects directly, but you must set the index file to browse the main site URL and its sub-directories.
$ swift post -r '.r:*' container
Example 1.17. Set site index file
Set the index file. In this case,
index.html
is the default file
displayed when the site displays.
$ swift post -m 'web-index:index.html' container
Example 1.18. Enable file listing
Turn on file listing. If you do not set the index file, list the objects in the container. Instructions on styling the list with the CSS follow.
$ swift post -m 'web-listings: true' container
Example 1.19. Enable CSS for file listing
Style the file listing.
swift post -m 'web-listings-css:listings.css' container