# Wowza Local Server with Amazon CloudFront

**URL:** <https://community.wowza.com/t/wowza-local-server-with-amazon-cloudfront/43662>\
**Category:** Wowza Streaming Engine\
**Created:** [October 7, 2014, 4:30am UTC](https://community.wowza.com/t/wowza-local-server-with-amazon-cloudfront/43662 "2014-10-07T04:30:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Puneet\_Jain](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@Puneet\_Jain](https://community.wowza.com/u/Puneet_Jain)\
**Post date:** [October 7, 2014, 4:30am UTC](https://community.wowza.com/t/wowza-local-server-with-amazon-cloudfront/43662/1 "2014-10-07T04:30:18Z")

</div>

Hi,

We would like to Setup a Wowza server locally (origin) and use Amazon CloudFront to deliver the data. I have seen many examples which shows setting up EC2 instance and configuring that but none of them tells if its possible to use Amazon CloudFront to point to our local Wowza Server and deliver the content using Caching mechanism.

Basically here is the requirement :

1. Setup a local Wowza Server and have a domain name allocated to it.

2. Store the Content to S3

3. Setup a CloudFront and Create Distribution which uses the domain name specified in Step 1.

4. Deliver the video using CloudFront URL.

I have tried to do all this and if I use cloudfront url (directly), it goes to our domain name. And if I use domain:8088 it does open wowza server on domain name.

But its not able to deliver video by using cloudfront url. I did try to create vodhttporigin but it didn’t help.

Could you guide me, where I am doing wrong ?

Also, I see that in Amazon CloudFront we can just create Web Distrubution to point to local wowza server via domain name but creating RTMP distrubtion is not allowed because its allowed only for S3. In such a case how do I deliver it via rtmp ? Also do I need to use same port 1935 for hls/hds delivery ?

Example :

1. 183.xx.xxx.xxx -\> Mapped to www.example.com

183.xx.xxx.xxx:8088 -\> Works

[www.example.com:8088](http://www.example.com:8088) -\> Works

Via JWPlayer [http://183.xx.xxx.xxx:1935/vod/1411622594.smil/playlist.m3u8](http://183.xx.xxx.xxx:1935/vod/1411622594.smil/playlist.m3u8) -\> Works

1. CloudFront distribution created and mapped to www.example.com

[ourcloudfronturl.net:8088](http://ourcloudfronturl.net:8088) -\> Works and points to www.example.com

Via JWPlayer [http://ourcloudfronturl.net:1935/vod/1411622594.smil/playlist.m3u8](http://ourcloudfronturl.net:1935/vod/1411622594.smil/playlist.m3u8) -\> Does not Work

Please help.

Thanks

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [October 7, 2014, 11:59pm UTC](https://community.wowza.com/t/wowza-local-server-with-amazon-cloudfront/43662/2 "2014-10-07T23:59:30Z")

</div>

Hi,

There’s no reason why this shouldn’t work. The only downside is you won’t have the benefit of the amazon backbone network.

The Wowza Streaming Engine can be configured independently as [a HTTP Caching Origin.](https://www.wowza.com/docs/how-to-configure-a-wowza-server-as-an-http-caching-origin)

I would also take a look at the [troubleshooting guide here](https://www.wowza.com/docs/how-to-troubleshoot-your-cloudfront-configuration)

RTMP Streams have to be streamed directly from the Wowza Streaming Engine, so the playback URL needs to be addressed to the origin server in the traditional way.

Daren
