I am running a web farm using shared config and would like to add something to every response to identify which node in the farm it has come from.
I was of the understanding that the inheritance of IIS configurations would mean that I could add my section in the machine.config files since they are unique to each node in the farm and it would cascade down.
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Machine-Name" value="SERVER1" />
</customHeaders>
</httpProtocol>
</system.webServer>
I also removed the <clear />
out of the applicationHost.config customHeaders section but my custom X-Machine-Name does not appear on responses served by machines in my farm.
I would like to identify which machine the content is coming from, it doesn't need to be anything identifying to the machine, a simple 1,2,3 or a,b,c would do to keep it secure. I want to make it fairly easy if a colleague has to add a new node to the farm to be able to reproduce.