# Possible to map top-level requests to an streaming application?

**URL:** <https://community.wowza.com/t/possible-to-map-top-level-requests-to-an-streaming-application/43429>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [August 20, 2014, 9:34am UTC](https://community.wowza.com/t/possible-to-map-top-level-requests-to-an-streaming-application/43429 "2014-08-20T09:34:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chalmers\_Hamill](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@Chalmers\_Hamill](https://community.wowza.com/u/Chalmers_Hamill)\
**Post date:** [August 20, 2014, 9:34am UTC](https://community.wowza.com/t/possible-to-map-top-level-requests-to-an-streaming-application/43429/1 "2014-08-20T09:34:44Z")

</div>

Howdy folks,

I am wondering if it is possible to map top-level requests to a vhost to a specific application?

In particular, I’d like to be able to tell users to access files via a URL like this:

${HOSTNAME}:${PORT}/mp4:sample.mp4

Where ${HOSTNAME} is the address a Wowza vhost is listening on.

It doesn’t look like this is possible, but I am perhaps wrong.

Thanks!

–

Morgan Hamill

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [August 20, 2014, 5:52pm UTC](https://community.wowza.com/t/possible-to-map-top-level-requests-to-an-streaming-application/43429/2 "2014-08-20T17:52:07Z")

</div>

Hi,

It is possible to create an application called “_defapp_” which would be the default application that would be used when no application name is specified.

In this case, you could then reference the VODs using a streaming URL like you have mentioned in your previous post.

For example, and Apple HLS stream would looks something like this:

```auto
http://WowzaIP:1935/mp4:sample.mp4/playlist.m3u8

```

Zoran

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [August 26, 2014, 5:02pm UTC](https://community.wowza.com/t/possible-to-map-top-level-requests-to-an-streaming-application/43429/3 "2014-08-26T17:02:34Z")

</div>

Yes, you will need to create a “_defapp_” folder, containing your Application.xml file, in your conf/ directory and also a “_defapp_” folder in the applications/ directory.

Don’t forget to restart your Wowza server after making the changes.

Zoran

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [June 22, 2015, 1:38pm UTC](https://community.wowza.com/t/possible-to-map-top-level-requests-to-an-streaming-application/43429/4 "2015-06-22T13:38:10Z")

</div>

If your trying to access a file in the /content directory you do not need a path to file.

The URL would be:

```auto
rtmp://WowzaIP:1935/mp4:sample.mp4

```

If the file is in a sub folder of content you will need to use _definst_ in the URL:

```auto
rtmp://WowzaIP:1935/_definst_/mp4:sample.mp4

```

Hope this helps.

Salvadore

---

<div class="post-metadata">

**Author:** ![Chalmers\_Hamill](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@Chalmers\_Hamill](https://community.wowza.com/u/Chalmers_Hamill)\
**Post date:** [August 26, 2014, 9:53am UTC](https://community.wowza.com/t/possible-to-map-top-level-requests-to-an-streaming-application/43429/5 "2014-08-26T09:53:49Z")

</div>

I’m not having much luck with this; a few questions.

Where should the configuration file for _defapp_ go? conf/_defapp_/Application.xml?

What should the name of the sharedobjects folder be under applications/?

Help would be appreciated.

–

Morgan Hamill

---

<div class="post-metadata">

**Author:** ![Chalmers\_Hamill](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@Chalmers\_Hamill](https://community.wowza.com/u/Chalmers_Hamill)\
**Post date:** [August 26, 2014, 10:15am UTC](https://community.wowza.com/t/possible-to-map-top-level-requests-to-an-streaming-application/43429/6 "2014-08-26T10:15:32Z")

</div>

Hmm, this doesn’t seem to be working for me.

I’ve done as you said, and then tried this url:

rtmp://wowza\_ip:port/mp4:path/to/file.mp4

And I get this in the logs:

Application folder ([install-location]/applications/mp4:) is missing

Not sure what I’m missing.
