I have a problem virtualising SSIs from an external application web server. I think the problem is with rewriting SSIs to an external URL - I was hoping Apache would retrieve the content through its internal proxy so it all "just works" for the authors when they preview web pages.
HTML pages on our website can (and do) use SSIs to include dynamic information. For example, a page may include contact details for people who are involved with "Content Management" like so:
... #include virtual="/apps/owa/phone_inc.include?p_service=Web+Content+Management" ...
When viewing pages within TeamSite, these includes show up as "[an error occurred while processing this directive]".
I would like to get these includes to work with live data off the webserver and need some help.
The webserver in use is Apache 1.3, so I am working with the mod_rewrite include that comes with TeamSite.
Something like this ...
RewriteCond %{ENV:iwarea} !=none
RewriteCond %{ENV:REQUEST_URI} /default/main/Education/
RewriteRule ^/apps/owa/(.*)
http://applications.example.com/apps/owa/$1 [P,PT,S=5]
Still displays the error occurred message.
However, I can get it to rewrite to a URL on the same server fine. For example, this does work.
RewriteCond %{ENV:iwarea} !=none
RewriteCond %{ENV:REQUEST_URI} /default/main/Education/
RewriteRule ^/apps/owa/(.*) /iw-mount/default/main/STAGING/external_error.inc [PT,S=5]
Help!
Edited by bboyle on 12/04/03 06:20 PM (server time).