httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] Server side includes where the include is on another server...
Date Fri, 14 Mar 2008 14:18:19 GMT
On Fri, 14 Mar 2008 14:09:10 -0000
"michael watson \(IAH-C\)" <michael.watson@bbsrc.ac.uk> wrote:

> Hello
> 
> I think I answered my own question, but lets try anyway.  I'm running
> apache 2.2.4 on Red Hat and I want to user server-side includes.  I
> can get them working if the include file is on the same server, but
> what I really want is something like:
> 
> <!--#include
> virtual="http://www.someotherserver.com/includes/leftcontent.html" -->
> 
> Where http://www.someotherserver.com is a server that is NOT the one
> the shtml file is on, but a different server entirely (thogh still on
> our intranet).
> 
> Is this possible?

Not like that, though there's a patch that'll do it[1].

You can, however, reverse-proxy it:
<!--#include virtual="/backend/include/leftcontent.html"-->
and in httpd.conf:
ProxyPass /backend/ http://www.someotherserver.com/
etc.

[1] http://marc.info/?t=119353034300002&r=1&w=2

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message