How to serve resource files requested by an HTTP request from a local file server? RRS feed

  • Question

  • Hi Guys,

    This one is a head scratch-er (my head at least)

    We want out users to login to a SaaS app using a web interface. Part of what they can do their while interacting with the app is to watch training videos. We have few branches around US and the problem is we don't want our branch bandwidth to be consumed by the videos streaming all day. How and what tools would allow us prevent the site from downloading/streaming the requested video from the SaaS provider server and rather serve it from a file server that is local to each branch?

    Thanks in advance

    Wednesday, September 2, 2015 1:08 AM

All replies

  • First off, are you allow to store the video content locally? Can you play the copied files from a local server?


    Wednesday, September 2, 2015 7:52 AM
  • Yes, we are allowed to store them and play them from a local server because we own this material. As I mentioned, they are training videos we created for our employees.

    Wednesday, September 2, 2015 3:49 PM
  • You should be able to use redirection. I'm guessing the proxy server at the branch would be a good bet. Assuming you can spot a common pattern in the request, such as a common path or extension then you should be able to get the proxy to redirect to the local variant. What proxy server(s) do you use?


    Wednesday, September 2, 2015 4:13 PM
  • Thanks for your response.

    I don't want to redirect the whole request to a local web server. The user must be able to login the SaaS application so they can use the application functionality. The use cases can allow them to login to a landing page and then download the video using by navigating the GUI or we send them a direct link to the video file which still will require them to login before the streaming starts.

    In both cases, I want the request to go normally to where it should (the SaaS app) but if there a video resource required, it doesn't get downloaded/streamed from the remote location but rather from our local server.

    Can the proxy do that?

    Wednesday, September 2, 2015 7:04 PM
  • I would expect a proxy to be able to handle that. All requests would go to your normal server. The server would return the address of the video file on their server. The client would attempt to fetch the video from that address. At that point the proxy would match the address to its mapping of things to redirect and provide you either a redirection or a direct transfer. I.e. Either the proxy would tell the client the resource is not here but over there or the proxy would simply grab the resource and the client would be none-the-wiser. That depends on the capabilities of your proxy.


    • Edited by pkr2000 Thursday, September 3, 2015 7:19 AM
    Thursday, September 3, 2015 7:18 AM