• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

how to setup vhost in FMS3

New Here ,
Apr 07, 2009 Apr 07, 2009

Copy link to clipboard

Copied

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

Views

981

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 02, 2009 May 02, 2009

Copy link to clipboard

Copied

LATEST

I am not exactly sure if I got your requirements right but let me try to answer your question with whatever I understood from it.

I think you are slightly going wrong at one step, instead of correcting let me just give you quick steps and you can try them out and tell me if it worked for you:

1. As you said , create a folder named "www.example.com" under _defaultRoot_ . Copy vhost.xml and application.xml under _defaultRoot_/_defaultVHost_ and place them under newly created folder "www.example.com"

2. Open Vhost.xml under "www.example.com" and change <AppsDir> tag value as below:

<AppsDir>D:\Program Files\Adobe\Flash Media Server 3\restricted</AppsDir>

3. Create folder called "restricted" under D:\Program Files\Adobe\Flash Media Server 3

4. Create application folder called "stream" and place allowedHTMLdomains.txt, allowedSWFdomains.txt, Application.xml, main.far

5. Modify application.xml file under "stream" so that it points the streams to where your content will actually be stored: <Streams>/;d:\content\restricted</Streams>

6. Open you client , put following connecting URI :- "rtmp://www.example.com/stream" and stream name say "hello" where "hello.flv" is present under "d:\content\restricted"

You should see "hello.flv" playing from "d:\content\restricted".

Hope this solves your problem.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines