The habitats where oak fern~(Gymnocarpium dryopteris) grows:

Caledonian forest
Mountain ledge
Rocky slope
Scree