[GH-ISSUE #34] Add option to use "path style" requests #20

Closed
opened 2026-03-04 01:41:13 +03:00 by kerem · 5 comments
Owner

Originally created by @Andrew-Dunn on GitHub (May 28, 2014).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/34

At the moment s3fs-fuse only supports virtual host style requests with the path prepended to the Host, i.e:

DELETE /puppy.jpg HTTP/1.1
User-Agent: dotnet
Host: mybucket.s3.amazonaws.com
Date: Tue, 15 Jan 2008 21:20:27 +0000
x-amz-date: Tue, 15 Jan 2008 21:20:27 +0000
Authorization: signatureValue

However some S3 compatible APIs do not support this style of request, and instead need the bucket name to be in the path, i.e.

DELETE /mybucket/puppy.jpg HTTP/1.1
User-Agent: dotnet
Host: s3.amazonaws.com
Date: Tue, 15 Jan 2008 21:20:27 +0000
x-amz-date: Tue, 15 Jan 2008 21:20:27 +0000
Authorization: signatureValue

I'm currently working on a patch which would allow this style of request to be used, which would be enabled with a configuration option such as use_path_style_request.

Originally created by @Andrew-Dunn on GitHub (May 28, 2014). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/34 At the moment s3fs-fuse only supports virtual host style requests with the path prepended to the Host, i.e: ``` DELETE /puppy.jpg HTTP/1.1 User-Agent: dotnet Host: mybucket.s3.amazonaws.com Date: Tue, 15 Jan 2008 21:20:27 +0000 x-amz-date: Tue, 15 Jan 2008 21:20:27 +0000 Authorization: signatureValue ``` However some S3 compatible APIs do not support this style of request, and instead need the bucket name to be in the path, i.e. ``` DELETE /mybucket/puppy.jpg HTTP/1.1 User-Agent: dotnet Host: s3.amazonaws.com Date: Tue, 15 Jan 2008 21:20:27 +0000 x-amz-date: Tue, 15 Jan 2008 21:20:27 +0000 Authorization: signatureValue ``` I'm currently working on a patch which would allow this style of request to be used, which would be enabled with a configuration option such as `use_path_style_request`.
kerem closed this issue 2026-03-04 01:41:14 +03:00
Author
Owner

@ggtakec commented on GitHub (Jun 3, 2014):

Merged Andrew pull request, and I will add explanation about this new option into man page.

<!-- gh-comment-id:44972868 --> @ggtakec commented on GitHub (Jun 3, 2014): Merged Andrew pull request, and I will add explanation about this new option into man page.
Author
Owner

@ggtakec commented on GitHub (Jun 3, 2014):

Added and merged master branch with explanation about use_path_request_style option.

Thanks, Andrew.

<!-- gh-comment-id:44974296 --> @ggtakec commented on GitHub (Jun 3, 2014): Added and merged master branch with explanation about use_path_request_style option. Thanks, Andrew.
Author
Owner

@alebeta90 commented on GitHub (Jul 14, 2015):

Hello, is still possible use the path style? im trying:
s3fs -o use_path_style_request -o host=http://ecs.domain.com bucketname s3/
and i get this error

fuse: unknown option `use_path_style_request'

Thanks for your time!
Alejandro B.

<!-- gh-comment-id:121274843 --> @alebeta90 commented on GitHub (Jul 14, 2015): Hello, is still possible use the path style? im trying: s3fs -o use_path_style_request -o host=http://ecs.domain.com bucketname s3/ and i get this error fuse: unknown option `use_path_style_request' Thanks for your time! Alejandro B.
Author
Owner

@gaul commented on GitHub (Jul 14, 2015):

@alebeta90 Which version of s3fs do you use? 1.78 and later should include use_path_request_style.

<!-- gh-comment-id:121308786 --> @gaul commented on GitHub (Jul 14, 2015): @alebeta90 Which version of s3fs do you use? 1.78 and later should include `use_path_request_style`.
Author
Owner

@Andrew-Dunn commented on GitHub (Jul 15, 2015):

Hey @alebeta90, the option name is use_path_request_style, not use_path_style_request.

<!-- gh-comment-id:121456563 --> @Andrew-Dunn commented on GitHub (Jul 15, 2015): Hey @alebeta90, the option name is `use_path_request_style`, not `use_path_style_request`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#20
No description provided.