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

RE: [cobalt-users] Shared CGI-BIN



> I'd like to make available some cgi scripts to all users on a RaQ4 from
> a shared area.  Search of the archives hasn't lead to much more that I
> think it can be done.
>
> Would be interested in a solution that someone has done and/or knows
> can be done.

I remember seeing how to do it somewhere, but I don't remember exactly what
you had to do.

But here is a solution.  I put soem cgi's on one of my domains.  I can use
these cgi's from any other domain by referencing the domain where the cgi's
are.  It will have to do a DNS lookup, but it will resolve locally so its
not too bad.  Here some info on what I mean.

I have setup a counter cgi on domain1
	www.domain1.com/cgi-bin/livecntr.pl

On any other domain all I have to do to use the counter is
  <center>
  <!-- begin: LiveCounter Classic CGI counter -->
  <IMG SRC="http://www.domain1.com/cgi-bin/livecntr.pl?0+6+domain1"; WIDTH=15
HEIGHT=20 ALT="">
  <IMG SRC="http://www.domain1.com/cgi-bin/livecntr.pl?1+6+domain1"; WIDTH=15
HEIGHT=20 ALT="">
  <IMG SRC="http://www.domain1.com/cgi-bin/livecntr.pl?2+6+domain1"; WIDTH=15
HEIGHT=20 ALT="">
  <IMG SRC="http://www.domain1.com/cgi-bin/livecntr.pl?3+6+domain1"; WIDTH=15
HEIGHT=20 ALT="">
  <IMG SRC="http://www.domain1.com/cgi-bin/livecntr.pl?4+6+domain1"; WIDTH=15
HEIGHT=20 ALT="">
  <IMG SRC="http://www.domain1.com/cgi-bin/livecntr.pl?5+6+domain1"; WIDTH=15
HEIGHT=20 ALT="">
  <!-- end: LiveCounter Classic CGI counter -->
  </center>

There may be a better way, but this worked fine for me so I'm happy.