Wowza Community

startup.xml

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! :slight_smile:

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

http://www.wowza.com/forums/showthread.php?t=6875http://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

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:

<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

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

Awesome, thanks! :smiley: