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

[cobalt-users] can anyone help with this?



Hi list,

I hope somebody can help me with this problem.  I'm trying to enforce banner
advertisements on our RAQ3 making users websites display a header (with our
banner) and a footer (with some text).  These banners need to be enforced on
the following document types: HTML, PHP, CGI and PL files.  What I want is
whenever a file of the types I just specified are called from within the
/web/ directory (and anything beyond) for my header and footer files to be
displayed.  I'm trying to use the Apache::Sandwich module to achieve this
but I'm not having much luck.

Here is what I placed in my httpd.conf file:

---- begin paste ----

<FilesMatch "\.brc$">
SetHandler  perl-script
PerlHandler Apache::Sandwich
</FilesMatch>

<FilesMatch "\.sbrc$">
SetHandler  perl-script
PerlHandler Apache::Sandwich
PerlSetVar SandwichHandler server-parsed
</FilesMatch>

<Location /web>
       PerlSetVar HEADER "/web ads.html"
       PerlSetVar FOOTER "/web ads.html"
</Location>

---- end of paste ----

Can anyone point me at where I'm going wrong... and/or send an example of
how the code should look in my httpd.conf file to achieve the results I
want.

The ads.html file just will not load.  Also, would I be able to specify an
absolute path for the ads.html file so that I can alter the contents of the
file for all virtual sites in one hit
(/home/sites/www.domain.com/fwp/ads.html)?

I hope someone can help with this.  I've just run out of ideas!

Thanks in advance.

Amanda.