Web Hosting Talk







View Full Version : SSI on external server


NVB
09-03-2001, 02:20 PM
I have several pages that use SSI's (server side include) in the form <!--#include virtual="/cgi-bin/script.cgi"-->
I would like for pages on another server to use the same script, but when I type the command <!--#include virtual="http://domain_name/cgi-bin/script.cgi"-->, I get an error processing the directive.

How do you configure a sever to allow external SSI requests?

If it is not possible to use the SSI, I might want to setup a cron job that would ftp updated files to the external server every hour. Is this possible? Do you have any other suggestions?

(SH)Saeed
09-03-2001, 02:33 PM
If I'm not misstaking, the include SSI command is used <!--#include virtual="/path/to/file.ext" --#> (full path) and <!--#include file="file.ext" --#> (sam dir). I don't think you can use this to include a file from another server (and I'm glad you can't!).

Cyberpunk
09-04-2001, 11:35 PM
A while back I wondered about this and pretty much discovered its not possible.

I did see a couple of scripts at http://www.cgi.resourceindex.com to do this but I dont remember which ones, plus the author required payment for use.

Honu
09-05-2001, 02:33 AM
Aloha
you can do this with ColdFusion
you can suck in other peoples web pages and everyting pretty cool at times ;)