# startup.xml

**URL:** <https://community.wowza.com/t/startup-xml/34515>\
**Category:** Wowza Streaming Engine\
**Created:** [March 23, 2010, 12:06pm UTC](https://community.wowza.com/t/startup-xml/34515 "2010-03-23T12:06:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_P1](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@J\_P1](https://community.wowza.com/u/J_P1)\
**Post date:** [March 23, 2010, 12:06pm UTC](https://community.wowza.com/t/startup-xml/34515/1 "2010-03-23T12:06:30Z")

</div>

Hey guys, I need a little help configuring startup.xml correctly

I would like to only accept traffic from one ip address, so I need to configure VHost.xml to change this

Is there a way to make my own VHost.xml file, and add it to my startup.xml?

Thanks so much for the help! 🙂

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 24, 2010, 1:03pm UTC](https://community.wowza.com/t/startup-xml/34515/2 "2010-03-24T13:03:22Z")

</div>

VHost won’t limit traffic in that way. You can do it at the application level:

[https://www.wowza.com/forums/showthread.php?t=6875https://www.wowza.com/forums/showthread.php?t=6875](https://www.wowza.com/forums/showthread.php?t=6875https://www.wowza.com/forums/showthread.php?t=6875)

You can add a modified VHost.xml to your startup package, but it won’t help with that requirement.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 24, 2010, 10:28pm UTC](https://community.wowza.com/t/startup-xml/34515/3 "2010-03-24T22:28:36Z")

</div>

The structure of an EC2 startup package mirrors the structure of Wowza, with /conf and /applications and /lib folders. You configure these folders in the startup package in the exact same way you would a Wowza server, so it’s very easy as far as that goes. The one issue is 16kbs limit on the zipped package. To get around this if you have large jar files that need to go in the /lib folder, you add a Download tag to the startup.xml file, then put the jar files on a web server. You can zip it up and have it unzip.

For example:

```auto
<Startup>
	<Commands>
		<Install>
			<Folder>wowza</Folder>
		</Install>
		<Download>
			<URL>http://[web-address]/somejarfiles.zip</URL>
			<Destination>/usr/local/WowzaMediaServer/lib/somejarfiles.zip</Destination>
			<Action>UNZIP</Action>
		</Download>
		<RunScript>
			<Script>tuning/tune.sh</Script>
		</RunScript>
	</Commands>
</Startup>

```

Where “somejarfiles.zip” is a zip file containing one or more jar files you need for you server.

Richard

---

<div class="post-metadata">

**Author:** ![J\_P1](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@J\_P1](https://community.wowza.com/u/J_P1)\
**Post date:** [March 24, 2010, 1:14pm UTC](https://community.wowza.com/t/startup-xml/34515/4 "2010-03-24T13:14:43Z")

</div>

How would I add it to my startup package? @\_@

---

<div class="post-metadata">

**Author:** ![J\_P1](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@J\_P1](https://community.wowza.com/u/J_P1)\
**Post date:** [March 24, 2010, 3:59pm UTC](https://community.wowza.com/t/startup-xml/34515/5 "2010-03-24T15:59:37Z")

</div>

Awesome, thanks! 😃
