Question
Confused about configurations for multiple vhosts/apps
My situation:
We've installed FMS on our dedicated server, which is also hosting about 50 websites. It's Linux based, running a Plesk control panel.
What I'd like to do is to have it such that as each hosting client signs up for the FMS service, we then go in and set up the necessary VHost/Application settings so that they can upload their .flv and .mp3 content to a folder in their site's directory, specify a connection string for their Flash player to play the conent
(e.g.
rtmp://www.WEBSITE_NAME.com/fms_app/ABS_PATH_TO_FILE
where ABS_PATH_TO_FILE points to
/var/www/vhosts/WEBSITE_NAME/httpdocs/ABS_PATH_TO_FILE
)
I have read and re-read the docs and tried setting up vhosts, applications and file repositories all over the place, reloaded the server many, many times, tested things out on the server... and I've never gotten things to work like I need them to. I've done my very best to follow what's described in the docs to no avail. It's been frustrating to say the least.
Here's my understanding of what I have to do to get this to work, and I'd appreciate any feedback anyone has as to why this isn't currently working, or a better way of getting this done.
For each hosting client (e.g. "www.angryclient.com")
Also I'm wondering - is there anyone else out there that has successfully set things up in the way I'm describing above? Or am I going into new territory here?
Thanks,
Hermes
We've installed FMS on our dedicated server, which is also hosting about 50 websites. It's Linux based, running a Plesk control panel.
What I'd like to do is to have it such that as each hosting client signs up for the FMS service, we then go in and set up the necessary VHost/Application settings so that they can upload their .flv and .mp3 content to a folder in their site's directory, specify a connection string for their Flash player to play the conent
(e.g.
rtmp://www.WEBSITE_NAME.com/fms_app/ABS_PATH_TO_FILE
where ABS_PATH_TO_FILE points to
/var/www/vhosts/WEBSITE_NAME/httpdocs/ABS_PATH_TO_FILE
)
I have read and re-read the docs and tried setting up vhosts, applications and file repositories all over the place, reloaded the server many, many times, tested things out on the server... and I've never gotten things to work like I need them to. I've done my very best to follow what's described in the docs to no avail. It's been frustrating to say the least.
Here's my understanding of what I have to do to get this to work, and I'd appreciate any feedback anyone has as to why this isn't currently working, or a better way of getting this done.
For each hosting client (e.g. "www.angryclient.com")
-
-
Set up a VHost. This is done by adding a folder in the
/fms/conf/_defaultVHost_/ folder and the name of the folder MUST
MATCH the client's domain I'm setting up the VHost for
(i.e. /fms/conf/_defaultVHost_/angryclient.com).
-
Set up an application for this VHost. I have attempted to
set up an application in a folder in that hosting client's root
folder, for organizational purposes (i.e.
/var/www/vhosts/angryclient.com/APPLICATION_NAME) and then point
the VHost to this application location via the <AppsDir> node
in the /fms/conf/_defaultRoot_/angryclient.com/Vhost.xml file...
but it has never worked, despite there being no indication to me
anywhere that it wouldn't... so for the time being I've done a
retreat back to keeping the node I mentioned set to:
<AppsDir>${VHOST.APPSDIR}</AppsDir>
I have also attempted to set up an application within the /fms/applications/ folder and it has ALSO not worked. I made a folder (e.g. /fms/applications/angry_client_app/) and copied all the necessary files into it (Application.xml and both "allowedDomains" txt files) and placed a test .flv file in. When running the FMS Admin Console it clearly shows up as an "application" (i.e. shows up in the "Applications" tab, under the "application name" column). However when I run fmscheck on the server I get the error message
NetConnection.Connect.Rejected [ Server.Reject ] : (_defaultRoot_, angryclient.com) : Application (angry_client_app) is not defined.
Only upon switching the appsdir node over to the default setting it shipped with, as I mentioned above, was I able to continue forwards to actually serving up test content as things stand.
Also let me say that I want to set up a distinct application for each hosting client, yes? My thinking there is that it means that there's going to be clear, distinct usage and bandwidth stats for each client, and that furthermore I'll be able to restrict access to a particular domain via the allowedHTMLdomains.txt file in that application's folder, right?
-
Set up a stream location that the client can easily FTP content
up to. I want to make it so that, as I stated above, when a
client has a Player they can specify a simple looking url
(e.g. rtmp://angryclient.com/my_app/movies/playing_golf.flv)
And have that point to a folder under their web root which they can FTP up to
(e.g. httpdocs/movies/playing_golf.flv).
To do this I'd set the value of the <Streams> node in the StreamManager -> VirtualDirectory nodes in the application's Application.xml file, right? Of course I haven't even gotten past the above hurdle of setting up a distinct application yet.... but when this is finished ... I'm referring to wherever I keep the client's application folder for organizational purposes (e.g. /var/www/vhosts/angryclient.com/APPLICATION_NAME/Application.xml)
Also I'm wondering - is there anyone else out there that has successfully set things up in the way I'm describing above? Or am I going into new territory here?
Thanks,
Hermes
