T
tommy.thomas
i'm a new web developer working for a large university w/ several
department sites hosted on a number of different servers.
we are currently trying to globalize all of the header/footer
navigation.
the problem is the global header and footer live on one server....while
other department sites are scattered from server to server.
we use ssi includes for local directories just fine.
i'm trying to use a "proxy" perl script to GET the .html printed
through the perl script as follows:
this file is in a cgi-bin directory named "proxy.pl" on any server:
<--------------------------------------proxy.pl---------------------------------------->
#! /usr/bin/perl
use LWP::Simple;
print "Content-type:text/html\n\n";
getprint($ENV{'QUERY_STRING'});
<-------------------------------------------------------------------------------------------->
then i insert this tag in any html file on remote servers:
<!--#include
VIRTUAL="/cgi-bin/proxy.pl?http://www.mydomain.edu/header.html" -->
when the page loads, it spits out the perl script "literally"
"#! /usr/bin/perl use LWP::Simple; print "Content-type:text/html\n\n";
getprint($ENV{'QUERY_STRING'});"
i want it to print the contents of "header.html": <table>...some
navigation html...</table>
am i missing something? can it be done?
any suggestions are appreciated.
t$
department sites hosted on a number of different servers.
we are currently trying to globalize all of the header/footer
navigation.
the problem is the global header and footer live on one server....while
other department sites are scattered from server to server.
we use ssi includes for local directories just fine.
i'm trying to use a "proxy" perl script to GET the .html printed
through the perl script as follows:
this file is in a cgi-bin directory named "proxy.pl" on any server:
<--------------------------------------proxy.pl---------------------------------------->
#! /usr/bin/perl
use LWP::Simple;
print "Content-type:text/html\n\n";
getprint($ENV{'QUERY_STRING'});
<-------------------------------------------------------------------------------------------->
then i insert this tag in any html file on remote servers:
<!--#include
VIRTUAL="/cgi-bin/proxy.pl?http://www.mydomain.edu/header.html" -->
when the page loads, it spits out the perl script "literally"
"#! /usr/bin/perl use LWP::Simple; print "Content-type:text/html\n\n";
getprint($ENV{'QUERY_STRING'});"
i want it to print the contents of "header.html": <table>...some
navigation html...</table>
am i missing something? can it be done?
any suggestions are appreciated.
t$