Object Storage

static html pages are downloaded instead of opened in browser

bobo17212
1,468 Views

Hey all - I uploaded a simple index.html page to a storagegrid bucket.  When I point a browser to it, the browser attempts to download index.html, rather than render it.  From https://netappstoragegrid.wordpress.com/2016/03/16/using-storagegrid-webscale-to-host-static-websites-and-content/, it looks like serving stating HTML should be possible.  What am I missing?

 

Thanks

1 ACCEPTED SOLUTION

bobo17212
1,461 Views

Just figured it out.  Gotta add --content-type "text/html" to aws s3api.

View solution in original post

1 REPLY 1

bobo17212
1,462 Views

Just figured it out.  Gotta add --content-type "text/html" to aws s3api.

Public