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

RE: [cobalt-users] Inserting file on the FLY



>One of my customer want to add a Disclaimer info to
>his members page automatically as a Server level.
>
>i.e. Without modifying every single page of his customers.
>But end of their pages, this particular info should be added.
>Specially to the first page of each customer -
>say www.customer.com/~hiscustomerA/index.html
>(It is a charity web site.)
>


Sounds to me like you'd have to modify Apache to be able to do that (you're
talking major nightmare esp. trying to recompile anything on a raq and
that's only after you've written a mod to apache )..
hmm.. actually, you could write a wrapper program and then put a line in
httpd.conf to apply the wrapper to index.html files.. but that seems awfully
extreme.

>Does anyone know how to setup this ?
>or any FAQs found across the net .

My immediate and easiest solution would be to have this person require his
users to add a line to the end of their pages using shtml. You can setup a
script alias in httpd.conf for the entire server to a directory say,
/cgi-disclaimer/ then point it to a single directory outside the normal web
root.. say /home/sites/cgi-disclaimer/ then create a short little perl file
which prints the disclaimer.

There may be other better methods which would be interesting to hear..

Douglas MacDougall.
CTO - GNA Co. Ltd.
Japan