# How to serve HLS using Wowza over port 80 in a server that also uses Apache2

**URL:** <https://community.wowza.com/t/how-to-serve-hls-using-wowza-over-port-80-in-a-server-that-also-uses-apache2/48554>\
**Category:** Wowza Streaming Engine\
**Created:** [April 19, 2017, 7:29am UTC](https://community.wowza.com/t/how-to-serve-hls-using-wowza-over-port-80-in-a-server-that-also-uses-apache2/48554 "2017-04-19T07:29:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Garcia1](https://avatars.discourse-cdn.com/v4/letter/v/58956e/32.png) [@Victor\_Garcia1](https://community.wowza.com/u/Victor_Garcia1)\
**Post date:** [April 19, 2017, 7:29am UTC](https://community.wowza.com/t/how-to-serve-hls-using-wowza-over-port-80-in-a-server-that-also-uses-apache2/48554/1 "2017-04-19T07:29:01Z")

</div>

I have a server Devian Wheezy with apache2 and WowzaStremaingEngine (WSE).

- I’m using RTMP for desktop player versión (over port 80 with Apache ProxyPass) solution found here: [http://www.keendevelopment.ch/running-apache-and-wowzaflash-media-serverred5-on-port-80-at-the-same-time/](http://www.keendevelopment.ch/running-apache-and-wowzaflash-media-serverred5-on-port-80-at-the-same-time/) and work fine for me 🙂
- HLS for android and iOS (with wowza over 1935 at the moment)
- And Apache (over standard port 80) for the web page with JWPlayer to reproduce the streaming.

I want to use port 80 for all the services! There is a way to resolve it without buying another IP adress?

I try the same way I use with RTMP, but it seems not work… with 404 error when try to load m3u8 file, maybe I’m making something wrong. I include simply the next line in /etc/apache2/sites-enabled/000-default

```auto
ProxyPass "^/(.*\.m3u8)$" http://localhost:1935/$1

```

Actually I use a URL with the next format to play the stream using Wowza (don’t have the m3u8 files, using smil format to determine the qualities)

```auto
http://my.domain.com:1935/myVodApp/smil:multibitrate.smil/playlist.m3u8

```

SMIL example file for WOWZA (Generated when video transcoding process finished)

```auto
<?xml version="1.0" encoding="UTF-8"?>
<smil title="multibitrate.mp4">
  <body>
    <switch>
      <video height="360" src="multibitrate_360.mp4" systemLanguage="spa" width="640">
          <param name="videoBitrate" value="500000" valuetype="data"></param>
          <param name="audioBitrate" value="64000" valuetype="data"></param>
        </video>
        <video height="480" src="multibitrate_480.mp4" systemLanguage="spa" width="854">
          <param name="videoBitrate" value="1200000" valuetype="data"></param>
          <param name="audioBitrate" value="96000" valuetype="data"></param>
        </video>
        <video height="720" src="multibitrate_720.mp4" systemLanguage="spa" width="1280">
          <param name="videoBitrate" value="3000000" valuetype="data"></param>
          <param name="audioBitrate" value="128000" valuetype="data"></param>
        </video>
        <video height="1080" src="multibitrate_1080.mp4" systemLanguage="spa" width="1920">
          <param name="videoBitrate" value="8000000" valuetype="data"></param>
          <param name="audioBitrate" value="192000" valuetype="data"></param>
        </video>
      </switch>
    </body>
  </smil>

```

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [April 19, 2017, 3:12pm UTC](https://community.wowza.com/t/how-to-serve-hls-using-wowza-over-port-80-in-a-server-that-also-uses-apache2/48554/2 "2017-04-19T15:12:00Z")

</div>

Hello Victor,

Only one service can bind and listen on a port at a time, so you would either have to change the port of your HTTP server or set up the HTTP server to bind to one interface and Wowza to bind to another interface.

If you’re using JWPlayer then is there a reason why Wowza needs to listen on port 80? The streaming should be transparent to any user accessing the player over port 80.

Regards,

Paul

---

<div class="post-metadata">

**Author:** ![Victor\_Garcia1](https://avatars.discourse-cdn.com/v4/letter/v/58956e/32.png) [@Victor\_Garcia1](https://community.wowza.com/u/Victor_Garcia1)\
**Post date:** [April 19, 2017, 4:50pm UTC](https://community.wowza.com/t/how-to-serve-hls-using-wowza-over-port-80-in-a-server-that-also-uses-apache2/48554/3 "2017-04-19T16:50:56Z")

</div>

I found a solution to make Apache serve RTMP using ReverseProxy and I want a similar solution to serve HLS to avoid buy another IP interface, and serve all protocols over port 80, in this way users can access to stream throught strict firewalls.
