how to setup vhost in FMS3
Hi,
We are trying to setup FMS so that a section of videos for streaming are restricted to a specific network, while other videos would be available to all to stream. According to what I read, this is best restricted by means of a vhost. However, I've spent 3 days trying to get a vhost to work and am thoroughly stumped. Any help would be greatly appreciated.
Here is what I have done:
Our current configuration for the _defaultVHost_ is: within vhost.xml, it points the apps dir to ${VHOST.APPSDIR} which points to the default install location. The VOD_DIR within fms.ini points to a separate location: d:\content\flash\.
Within the default applications location, there are 3 folders: live, stream, and vod. Within the stream folder, there is an Application.xml file that contains: <Streams>/;D:\content\flash\</Streams>
This setup up to this point works fine with my videos streaming from d:\content\flash\.
Now, I want to setup a vhost that points to an applications directory at: D:\Program Files\Adobe\Flash Media Server 3\conf\_defaultRoot_\www.example.com\restricted
I want the files for streaming to be located at d:\content\restricted
I created a folder under _defaultRoot_ thats named the dns address of the server. As used in the example from adobe: www.example.com. So, my path to this folder is: D:\Program Files\Adobe\Flash Media Server 3\conf\_defaultRoot_\www.example.com. I created a folder under www.example.com to be my applications folder for this vhost called restricted.
Within that folder, I put two files: Application.xml and vhost.xml. I edited the vhost.xml and changed the following: <AppsDir>D:\Program Files\Adobe\Flash Media Server 3\conf\_defaultRoot_\www.example.com\restricted</AppsDir>. The instructions from adobe is: "connect a test application to the new virtual host to make sure it works." I'm not sure if that is what they meant or not.
Then, within the restricted folder at D:\Program Files\Adobe\Flash Media Server 3\conf\_defaultRoot_\www.example.com\restricted I put the following 4 files: allowedHTMLdomains.txt, allowedSWFdomains.txt, Application.xml, main.far. I edited the application.xml file so that it points the streams to where my content will actually be stored: <Streams>/;d:\content\restricted</Streams>
I load up a test video and try to stream it from d:\content\restricted and it actually streams under the _defaultVHost_ instead of my www.example.com vhost.
Being that I'm learning and really have no idea what I'm doing, this is probably all messed up. If someone can please provide direction, it would be greatly appreciated.
Thanks!!
Charlie
