From 08484732eb4ac0d3a08f523ae9db79b8ad6f826b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 4 Mar 2011 14:19:30 -0800 Subject: [PATCH] Use virtual hosts for specifying S3 buckets This is needed to get requests directed to the right place when using different locations (US-West vs. US-California, for example). --- bluesky/store-s3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluesky/store-s3.c b/bluesky/store-s3.c index 00bace4..fd2da4f 100644 --- a/bluesky/store-s3.c +++ b/bluesky/store-s3.c @@ -192,7 +192,7 @@ static gpointer s3store_new(const gchar *path) else store->bucket.bucketName = g_strdup(path); store->bucket.protocol = S3ProtocolHTTP; - store->bucket.uriStyle = S3UriStylePath; + store->bucket.uriStyle = S3UriStyleVirtualHost; store->bucket.accessKeyId = getenv("AWS_ACCESS_KEY_ID"); store->bucket.secretAccessKey = getenv("AWS_SECRET_ACCESS_KEY"); -- 2.20.1