× Here you can get community support related to ReDJ.

Redirect links for amazon S3

  • adam.hughes
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #3353 by adam.hughes
Redirect links for amazon S3 was created by adam.hughes
I'm trying to set up a redirect link to a folder in an amazon s3 bucket to enable easier downloading of files.
I have the following three test downloads :

s3-eu-west-1.amazonaws.com/questartwork/labels/150100.zip
s3-eu-west-1.amazonaws.com/questartwork/labels/157512.zip
s3-eu-west-1.amazonaws.com/questartwork/labels/157514.zip

Which I would like to set up on redirect for the bucket called questartwork. To this end I have created a redirect rule with the following details :

FROM URL : ^/questartwork
TO URL : s3-eu-west-1.amazonaws.com/questartwork{pathltrim /questartwork}{queryfull}

The redirect seems to work, but I get the following error (from amazon web services) when I use it :

<code>
NoSuchKey
The specified key does not exist
/labels/150100.zip
</code>

The url that I end up with has a double slash in, but it looks like it should work. The url is :

s3-eu-west-1.amazonaws.com/questartwork//labels/150100.zip

Cheers

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #3355 by admin
Replied by admin on topic Redirect links for amazon S3
I am not sure the issue is related to redirect. Even when I call your first URL from my browser I get:
<Error><Code>NoSuchBucket</Code><Message>The specified bucket does not exist</Message><BucketName>questartwork</BucketName><RequestId>C8D9AD8B89BF1CF0</RequestId><HostId>eSEUm2xWN8HCYBE7N8uFoAQ5RDtQmRGXIGkXjk1ptve96iod6wpyGsDBQadpXcvxBsy1lwQsh6c=</HostId></Error>

I think you should first check your amazon settings.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • adam.hughes
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #3356 by adam.hughes
Replied by adam.hughes on topic Redirect links for amazon S3
Sorry I had to change the buckets in amazon due to naming issues. I have fixed the buckets, the new urls are listed below, but the same issue still remains. :

Amazon Direct URLS
s3-eu-west-1.amazonaws.com/qlp-artwork/labels/157514.zip
s3-eu-west-1.amazonaws.com/qlp-artwork/labels/157512.zip

My Redirect rule
From URL : ^/qlp-artwork
To URL : s3-eu-west-1.amazonaws.com/qlp-artwork{pathltrim /qlp-artwork}{queryfull}

My Test URL
www.questleisure.com/qlp-artwork/labels/157514.zip

Please Log in or Create an account to join the conversation.

  • adam.hughes
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #3357 by adam.hughes
Replied by adam.hughes on topic Redirect links for amazon S3
Sorry after recreating the redirect link it is now working fine.
I do not know what was wrong with the previous one, but I can report that the new URL works fine.

Cheers

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #3358 by admin
Replied by admin on topic Redirect links for amazon S3
In fact now it works as expected. I am happy the problem is solved.

For any further request you are welcome.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.102 seconds