I will set a trap anywhere I know the raccoons have been. Never had a loss inside our actual coop because once the pop door shuts, it's predator proof.
As long as you use bait that smells good enough, I don't think it matters too much where you put the trap. I used some leftover chicken wing...