Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SignatureDoesNotMatch #62

Open
innocent-anigbo opened this issue Oct 18, 2012 · 0 comments
Open

SignatureDoesNotMatch #62

innocent-anigbo opened this issue Oct 18, 2012 · 0 comments

Comments

@innocent-anigbo
Copy link

Hi guys,
My apology if i am posting this at the wrong place.
I am trying to move content from IIS to s3 bucket. I have already setup Nginx to proxy-pass to S3 bucket with my AWS Secret Keys and AWS Access Keys. My configuration is as follow:

server {
listen 80;
server_name localhost;

    #charset koi8-r;

    #access_log  logs/host.access.log  main;

           location /customerfolder1 {


            proxy_pass http://mybucketname.s3.amazonaws.com/customerfolder1/;
            aws_access_key **********;
            aws_secret_key **********/***********;
            s3_bucket mybucketname;

            proxy_set_header Authorization $s3_auth_token;
            proxy_set_header x-amz-date $aws_date;
            proxy_intercept_errors on;

 }
    location /customerfolder2 {


            proxy_pass http://mybucketname.s3.amazonaws.com/customerfolder2/;
            aws_access_key *********;
            aws_secret_key **********/*********;
            s3_bucket mybucketname;

            proxy_set_header Authorization $s3_auth_token;
            proxy_set_header x-amz-date $aws_date;
    }

My problem is this:
... each time i try accessing content in s3 from a browser, i usually get the error below:

SignatureDoesNotMatch The request signature we calculated does not match the signature you provided. Check your key and signing method..............

However, when i take out the trailing slash and the 'CustomerFolder' , i don't get this error.

i.e if it is; proxy_pass http://mybucketname.s3.amazonaws.com;

Please some one help me. I have been trying for mouths to figure out what the problem was without any breakthrough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant