Skip to main content
Inspiring
April 24, 2009
Question

creating a virtual host in FMS 3.5

  • April 24, 2009
  • 3 replies
  • 4860 views

I have Flash Streaming Media Server and am having problems setting up a Virtual Host.

I've done the following:

  • created a folder /fmsRoot/conf/_defaultRoot_/stream.example.com
  • copied in Application.xml and Vhost.xml from _defaultVhost_
  • specified a new apps directory here: /home/stream.example.com/fms_app/ then added <AppsDir>/home/stream.example.com/fms_app/</AppsDir> to the Vhost.xml file
  • Restarted FMS server

I then log in to the stream.example.com server and can connect fine.

However when I try and create an instance, it appears to connect, then disappears.

Any help is much appreciated.

Cheers,

Paul

    This topic has been closed for replies.

    3 replies

    Participant
    May 20, 2009

    I just setup my first virtual host, and I struggled with the same thing that you did...

    I have the FMS3.5 installed at /u01/flash, and for this case, the virtual server is www.example.com

    Here's what I did to get it working:

    • cd /u01/flash/conf/_defaultRoot_/_defaultVhost_
    • cp -r _defaultVHost_ www.example.com
    • edit flash.example.com/Vhost.xml and set: <AppsDir>/u01/flash/example</AppsDir>
    • cd /u01/flash
    • cp -r applications example
    • edit example/vod/Application.xml and set:  <Streams>/;/u01/flash/example/vod/media</Streams> (it wouldn't work without the leading /;)
    • restart the flash media server

    I haven't messed with the 'live' application yet, so I don't have any pointers there.

    Participating Frequently
    May 21, 2009

    Hi

         I know a little Linux command ,so I use winscp to do the operation.

         Does /u01 in root path?

         If yes , most of your operations are right.

         But did you change the new configration and application file reservation ???

         Like chmod 777 -R   your created file .

         If file reservation is not right , new config can not run .

         I hope it can help you.

    Incorrect file reservation often cause some problem .

    Participant
    May 21, 2009

    Anubis,

    I already have it working... I was just providing the set of linux commands to set it up so that others may benefit from it.

    Best Regards,

    jp kirk

    Participating Frequently
    May 19, 2009

    Hi

        I have configed the Vhost successfull.

         The config guide is right , but there is an important config is :

         You should add new vhost demon into your client pc vhost file.

         Then you can use new  vhost name for connecting .

        I hope it can help you.

    aSiNeAuthor
    Inspiring
    May 19, 2009

    Hi,

    Thanks for your advice, although I have already set up the FQDN in my hosts file.

    I've also tested this on a live server, with DNS set up correctly - it still won't work!!

    Could I ask if you are doing the following:

    • Creating a new Vhost in _defaultRoot_
    • Editing the Vhost.xml <Appsdir> directive to point to a folder outside FMS_ROOT
    • Editing the Application.xml in the new applications folder <Streams> directive to point to new repo
    • Restart FMS and then get an .fla to stream from that Vhost

    I've been unable to get this to work, so would appreciate it if you can shed the light

    Thanks,

    Paul

    April 24, 2009

    Hi Paul,

    I reproduced your steps and they worked fine for me.

    Can you create a sample client and connect to an application on that vhost from a browser or from Test Movie mode in Flash?

    Jody

    aSiNeAuthor
    Inspiring
    April 27, 2009

    Hi Jody,

    I have created a test flash application, and have the following instance name in the 'fms_app' folder: 'stream_online'

    I have created a folder called 'media' and placed an flv called 'Popeye_forPresiden768K.flv' in that folder.

    In the flvPlayback source field I entered 'rtmp://stream.example.com/stream_online/Popeye_forPresiden768K.flv'

    When I run the test fla I should expect to see the flv - however I don't!

    When I run a test flv from the same server's default vod instance, the flv is viewed as expected.

    Thanks for any ideas,

    Cheers,

    Paul

    aSiNeAuthor
    Inspiring
    April 27, 2009

    Refering to /var/log/messages:

    Javascript[12332]: Connection rejected by server. Reason : [ Server.Reject ] : 
    (_defaultRoot_, stream.example.com) : Application (stream_online) is not defined.

    But it is defined as far as I understand it.