Skip to main content
October 29, 2008
Question

Including content from another server

  • October 29, 2008
  • 1 reply
  • 302 views
We have two servers here at our site. It's a long story why, but one server needs to pull content from another. The content is not cold fusion code (it consists of css files, images, files, header and footer information etc...). It's basically a template that uses SSI's as it's basis.

Now, another department wants to use this stuff on their cold fusion server in an application that does run cold fusion code (so all the documents end in .cfm).

Cold Fusion cannot use include template with a relative path... mappings don't seem to work for this... I have wondered if it's best to simply use javascript to do the including, or is there a way to do it with cold fusion.

I could just give them the files, but this would make updates extremely tedious. We all want to use the same files- thanks!

    This topic has been closed for replies.

    1 reply

    Inspiring
    October 29, 2008
    If the files are static (images, css), going to be served to the client without any server side processing you could use links that refer to your other server. As in <img src=" http://otherserver.example.com/files/myfile.png" />

    If some server side processing is required you might consider a scheduled batch process to copy new/updated files from server 1 to server 2 on a regular basis to sync the content.