# Mediacache S3 301, 302, and 307 redirects

**URL:** <https://community.wowza.com/t/mediacache-s3-301-302-and-307-redirects/54678>\
**Category:** Wowza Streaming Engine\
**Created:** [February 18, 2020, 1:08pm UTC](https://community.wowza.com/t/mediacache-s3-301-302-and-307-redirects/54678 "2020-02-18T13:08:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charles\_Gaefke1](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@Charles\_Gaefke1](https://community.wowza.com/u/Charles_Gaefke1)\
**Post date:** [February 18, 2020, 1:08pm UTC](https://community.wowza.com/t/mediacache-s3-301-302-and-307-redirects/54678/1 "2020-02-18T13:08:08Z")

</div>

Hello, I’ve spent many hours in vain trying to get wowza mediacache to work with S3 MP4s. I’ve tried it on Amazon S3, Vultr S3, and DigitalOcean S3, and none of them work.

I’ve enabled the debugHTTPRequests on all three, and the net result is the same: the log either shows 301 (vultr), 302 (DigitalOcean) or 307 (Amazon) redirects. It seems wowza doesn’t follow the redirects? Unfortunately the wowza logs don’t show what the redirect is TO, just that I’m getting a redirect.

After the redirect I get a “MediaCacheItemBase.init: Item does not exist” in the log.

I know the API keys are fine because I can mount drives to them and access the files okay. The problem appears to be in Wowza.

I’m using the current release 4.7.8 build 20191105123929.

Any suggestions on how to get this working?

Thanks.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [February 18, 2020, 5:35pm UTC](https://community.wowza.com/t/mediacache-s3-301-302-and-307-redirects/54678/2 "2020-02-18T17:35:00Z")

</div>

Hi @Charles Gaefke, you have this set up as a VOD edge application correct?

Also, many times this is a case of a simple spelling mistake:

amazon3/ vs amazon **s** 3/ in the url

```auto
http://[wowza-ipaddress]:1935/mediacache/_definst_/mp4:amazons3/sample.mp4/playlist.m3u8

```

If you are still having issues after referencing the examples in this MediaCache [complete guide](https://www.wowza.com/resources/WowzaStreamingEngine_MediaCacheUsersGuide.pdf), please do [submit a support ticket](https://www.wowza.com/support/open-ticket) and we will take a look a the config and get it working for you.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [February 18, 2020, 5:35pm UTC](https://community.wowza.com/t/mediacache-s3-301-302-and-307-redirects/54678/3 "2020-02-18T17:35:00Z")

</div>

Hi @Charles Gaefke, you have this set up as a VOD edge application correct?

Also, many times this is a case of a simple spelling mistake:

amazon3/ vs amazon **s** 3/ in the url

```auto
http://[wowza-ipaddress]:1935/mediacache/_definst_/mp4:amazons3/sample.mp4/playlist.m3u8

```

If you are still having issues after referencing the examples in this MediaCache [complete guide](https://www.wowza.com/resources/WowzaStreamingEngine_MediaCacheUsersGuide.pdf), please do [submit a support ticket](https://www.wowza.com/support/open-ticket) and we will take a look a the config and get it working for you.

---

<div class="post-metadata">

**Author:** ![Charles\_Gaefke1](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@Charles\_Gaefke1](https://community.wowza.com/u/Charles_Gaefke1)\
**Post date:** [February 18, 2020, 7:44pm UTC](https://community.wowza.com/t/mediacache-s3-301-302-and-307-redirects/54678/4 "2020-02-18T19:44:14Z")

</div>

Thanks.

I managed to get the Amazon one working by manually setting the region and setting the awsSigningVersion to 4, as listed here:

[http://community.wowza.com/community/questions/44299/mediacache-aws-s3-not-working.html](http://community.wowza.com/community/questions/44299/mediacache-aws-s3-not-working.html)

It would be nice if Wowza defaulted to this and the documentation was updated accordingly!

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [February 19, 2020, 9:59pm UTC](https://community.wowza.com/t/mediacache-s3-301-302-and-307-redirects/54678/5 "2020-02-19T21:59:49Z")

</div>

Excellent information and thank you so much for sharing that. I will request this change in documentation today. Thanks again @Charles Gaefke for the feedback and glad you got it working.
