Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Including content from another server

Guest
Oct 29, 2008 Oct 29, 2008
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!

277
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Oct 29, 2008 Oct 29, 2008
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources