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

RE: [cobalt-users] [Cobalt RAQ3] SSI & CGI



>
> How can i set up a CGI program to run from every virtual site
> when they use
> an SSI tag like !--#include virtual="Banner.cgi" -- would you know how i
> could go about doing this? This would be so that when this is
> called from any
> site on the server it will access one cgi program for the
> information rather
> than all the sites having a Banner.cgi program in there /web/ directory
>
> I would want the actual script to be in a directory like
> /home/sites/banner/ads/ with the file name Banner.cgi
> and allow all the virtual sites to access it from the SSI tag
> !--#include virtual="Banner.cgi" --
>
> I know it can be done but i can figure out how.
>
>
You need to use a script alias. I think it's in the srm.conf. Then any site
on the RAQ that calls /cgi-ads/banner.cgi would be pointed to your "special"
cgi-bin.
Check the www.apache.org site for info.
--
Dan Kriwitsky