Based on the documentation provided in Deploy a Static Site using Hugo and Object Storage, it is recommended to initialize the bucket as a website to enable accessing the /
(index page) without explicitly using index.html
. This can be achieved by executing the following command:
However, an alternative approach to achieve the same effect is by utilizing a special endpoint for the website. For instance, if your bucket address is my-bucket.ap-south-1.linodeobjects.com
, appending website-
before the region results in my-bucket.website-ap-south-1.linodeobjects.com
.
To configure Nginx as a reverse proxy for this endpoint, incorporate the following location snippet within your server
scope in the Nginx configuration:
Assuming your site is located at my-bucket.website-ap-south-1.linodeobjects.com/sites/my-site
, you can access it through your main domain using a URL like http://example.com/my-site/
, all without explicitly referencing index.html
.