This content has been marked as final. Show 2 replies
SSI is just for local file systems. But if you want remote files, you can still use the exec directive with wget command.1 person found this helpful
I will try wget approach.
Also I have instructions of how to do this on Apache (see below),
so there should be a way to do the same on iPlanet.
To allow SSI to access files held on remote servers, a reverse proxy setup is needed.
The following should be added to the server’s httpd.conf file:
ProxyPass /templates http://www.somehost.com/templates
ProxyPassReverse /templates http://www.somehost.com/templates
If the root-relative path /templates conflicts with an existing directory,
it may be changed to any other name desired as long as the beginning
of the include paths are changed to match.
To prevent server encoding from returning compressed data, the following
should also be added to the httpd.conf file:
RequestHeader unset Accept-Encoding
The path within the Location node should match the first path in the ProxyPass settings.
Finally, the site directory needs to be configured to allow includes, and also to allow
includes with .html extensions. The following can be added to the site’s Directory node
in httpd.conf, or an .htaccess file held on the server:
AddType text/html .html
AddOutputFilter INCLUDES .html
Now you can use HTML virtual includes as if the page were hosted on the
same server as the include:
+<!--#include virtual="/templates/template.html" -->+
If Apache server is behind a firewall, the requests for
those directories need to forward to an outbound proxy.
The following addition to httpd.conf will allow for this:
+# Be careful with lines below. You should probably add some security around this with the <Proxy *> directive+
+# This is an example and this should be configured based on your environment+
ProxyRemote http://www.somehost.com/ <**your proxy host**>:3128