Injecting content on the fly at the server.

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

 




Got a better idea on how to do this?

Academic environment.  When employees (professors) retire, we commonly
leave their personal web pages (e.g. ~user) in place, and they commonly
continue to have access to our Unix machines.

Management (The Boss) has decreed that "all such pages shall be wrapped in
a disclaimer notice to the effect that this person has retired / relocated
/ whatever and that we have left this stuff in place as a courtesy and
that the views / opinions / scrofulous drivel found here in no way
reflects the opinion of our department or our institution and we've got
nothing to do with keeping it updated".  Or something like that.

Since editing source isn't really a viable option for (I think) obvious
reasons (including that these retirees will likely have access to their
sources), you'd like to inject some additional content on the fly.

mod_substitute looks like a possible solution, by means of introducing a
div immediately after the body tag.  Or perhaps mod_ext_filter.  e.g. the
right-hand part of the substitution would be roughly akin to  !<body><div
style="color:white;background:red;height:20px;width:100%">This person has
moved into the next phase of his or her life and is no longer employed
here and the opinions and other drivel appearing here is no longer our
stuff.</div>! applied at the appropriate ~user directories.

I can appreciate that this is almost certainly a less than ideal
solution.  It's not clear to me that mod_ext_filter would provide a better
solution.

It's pretty much a stock apache 2.2 server, nothing overly fancy here.

Thoughts / suggestions?

Oscar.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux