Re: Server side includes where the include is on another server...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 14 Mar 2008 14:09:10 -0000
"michael watson \(IAH-C\)" <michael.watson@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux