Skip to main content
Participant
June 15, 2010
Question

Problems with Setting a Custom Virtual Directory in VOD's Application.xml file

  • June 15, 2010
  • 1 reply
  • 889 views

I am running Flash Media Streaming Server 3.5.1 r516 on a CentOS system. I also have WHM/cPanel installed on this system.

My scenario is this. We have a large number of MP4 media files that are currently located in a web root directory created by cPanel: /home/mediafa/public_html/fullservices. These all work without a problem when doing progressive downloads. However, we also want to make them streamable with FMS as well. From the documentation, I should be able to create an entry in the /<fms install dir>/applications/vod/Application.xml file to look up files in that folder. Here is my VirtualDirectory block:

        <StreamManager>
                <VirtualDirectory>
      <!-- Specifies application specific virtual directory mapping for recorded streams.   -->
                        <Streams>/;/home/mediafa/public_html/fullservices</Streams>
                        <Streams>/;${VOD_COMMON_DIR}</Streams>
                        <Streams>/;${VOD_DIR}</Streams>
                </VirtualDirectory>
        </StreamManager>

However, when I try to connect to a file that is in that directory, I get a 404 error in the access.00.log file. I've tried to change the owner/group on the fullservices folder as well as the owner/group of the target file to the fms user/group, but I still cannot connect to it. The connection address is rtmp://<ipAddress>/vod/mp4:1005-03m_256k.mp4.

Anyone have any ideas here? I would love to be able to solve this issue here.

    This topic has been closed for replies.

    1 reply

    Participant
    June 22, 2010

    Well, I figured out the problem. I did not realize that FMS prohibits virtual directories from pointing to a directory outside the scope of your application directory. (In this instance, /<fms install dir>/applications/vod. In order to get things working, I had to do the following:

    1) Go to /<fms install dir>/conf/_defaultRoot_ and create a directory for the domain name I'm using.

    2) Copy the contents of /<fms install dir>/conf/_defaultRoot/_defaultVHost/ to this new directory (/<fms install dir>/conf/_defaultRoot/<domain name>)

    3) Modify the /<fms install dir>/conf/_defaultRoot/<domain name>/Vhost.xml file and change the <AppsDir> to my new application folder (In may example, I changed it to /home/mediafa/applications)

    4) I then copied the original VOD folder (/<fms install dir>/applications/vod) to this new applications folder.

    5) I restarted the fms server, and everything worked like a champ.

    I bet I'd have figured it out much quicker if I had read the manual!