Forum Moderators: mack
To avoid installing the script in all my domains I was wondering if I could just use an absolute link to that particular SSI command from all my domains.
I tried it and it didn't work.
Does anyone know any work around this problem?
Thanks.
I had this from within the domain:
<!--#include virtual="/cgi-bin/blablabla.cgi" -->
so in my other domains I just called it as an absolute like this:
<!--#include virtual="http://www.domain-with-SII-command.com/cgi-bin/blablabla.cgi" -->
But it gave me an error...
Is this what you also suggested? txs.
I had this from within the domain:
<!--#include virtual="/cgi-bin/blablabla.cgi" -->
so in my other domains I just called it as an absolute like this:
<!--#include virtual="http://www.domain-with-SII-command.com/cgi-bin/blablabla.cgi" -->
But it gave me an error...
Is this what you also suggested? txs.
If I had read that then my answer would have been a quick no.
The URL cannot contain a scheme or hostname, only a path and an optional query string.
[httpd.apache.org...]
What I meant is use the CGI scriptīs URI directly. The CGI script is run on each request of a page that uses your SSI command. I was suggesting letting the CGI script build the entire page that is now containing the SSI instruction.
Andreas
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
use LWP::Simple;
$cgiReturn = get "http://www.someotherdomain.com/cgi-bin/foo.cgi";
print $cgiReturn;
exit;
volatilegx,
Not familiar with LWP::Simple
What I understand from this is:
1) setting up this script in one of my domains,
2) call it, so that in turn calls the original script on another domain...
In this case I could SSI your quick script, but is it simpler?
Thank you all.
the LWP::Simple idea is very easy to implement. Just create a cgi script on your server using the code I provided above, and call it with your server side include. the script i wrote will call the second cgi script, and print out the output from that second script to the webpage that used the server side include.
What I understand from this is:
1) setting up this script in one of my domains,
2) call it, so that in turn calls the original script on another domain...
[webmasterworld.com...]