Skip to content

Commit 02e9a87

Browse files
committed
This fixes anomalizer#8
Solution to Signature Error when not using server's root location
1 parent 7a5ca3d commit 02e9a87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ Implements proxying of authenticated requests to S3.
2020
2121
# This is an example that does not use the server root for the proxy root
2222
location /myfiles {
23-
proxy_pass http://your_s3_bucket.s3.amazonaws.com/;
23+
24+
rewrite /myfiles/(.*) /$1 break;
25+
proxy_pass http://your_s3_bucket.s3.amazonaws.com/$1;
2426
2527
aws_access_key your_aws_access_key;
2628
aws_secret_key the_secret_associated_with_the_above_access_key;

0 commit comments

Comments
 (0)