I think it would easiest to do this within ColdFusion, like <body
bgcolor="#DetermineCorrectBGColor()#">
Or something similar with CSS: <body id="#DetermineCorrectBodyID()#">
That function could then look at the hostname, perhaps compare it to a
list of ones that should be displayed specially, and return the proper
ID value.
But it can be done with Apache as well. Look at the mod_ext_filter
module. It looks like you could do something similar to this in the
virtual hosts you want to appear differently:
# this changes the body id from normal to special in this virtual host
ExtFilterDefine fixtext mode=output intype=text/html cmd="/bin/sed
s/<body id=\"normal\"/<body id=\"special\"/"
<Location />
SetOutputFilter fixtext
</Location>
http://httpd.apache.org/docs/2.0/mod/mod_ext_filter.html
-Ryan
Ian Skinner wrote:
> Is it possible, and if so any links to help/hints/tutorials, to have
> Apache server modify content before it is sent to a browser.
>
> We would like to be able to tell some virtual hosts, but not others to
> change the background color style. The idea being to visually
> distinguish the staging virtual host form the production host. Some
> challenges for this is that both hosts actually get there styles from
> the same source and much of the content is plain HTML files so the usual
> CF tricks are not available.
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321888
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4