Where to place the oven thermometer in an oven?
I tend to just stick it close to where the food cooks. From the two options you name that would mean  putting it on the rack, not hanging under it.

I checked a couple of sources and found this one quite a nice read.