I have a rather interesting question. Is there a way we can have virtual includes embedded in an shtml page can be translated by mod_rewrite to proxy from a different site.
Example:
http://www.site.com/page.shtml
page.shtml comprises
<-- #include virtual="/cgi-bin/abc.cgi" -->
However I don't want to have the abc.cgi executed in the same webserver.
Hence I tried following rewrite
RewriteRule /cgi-bin/abc.cgi http://otherhost.com/cgi-bin/abc.cgi [L,P]
The above only works when the URI accessed directly but not from shtml page.
Any idea why sub requests within shtml page are not picked up by rewrite?
Thanks