abhijit wakchaure
abhijit wakchaure

Reputation: 430

How to setup MinIO Server to use Virtual Hosted-Style

I'm using aws-sdk-go (https://github.com/aws/aws-sdk-go) to connect so AWS S3. I also want to support MinIO (http://minio.io/) through the same code. But due to some restrictions on my part I can't use S3ForcePathStyle flag in config. Is there any way I can setup my MinIO server to support Virtual Hosted-Style paths?

P.S. I also tried setting MINIO_DOMAIN environment variable as instructed here https://docs.min.io/docs/minio-server-configuration-guide.html

Thanks in advance!

Upvotes: 3

Views: 15095

Answers (1)

abhijit wakchaure
abhijit wakchaure

Reputation: 430

By default, MinIO supports path-style requests that are of the format http://example.com/bucket/object. MINIO_DOMAIN environment variable is used to enable virtual-host-style requests. If you configure MINIO_DOMAIN, MinIO will support both path-style and virtual-host-style requests from the clients.

export MINIO_DOMAIN=mydomain.com
minio server /data

Upvotes: 12

Related Questions