[1.5.x] Fixed #22062 -- Corrected static files config for Apache >= 2.4

Backport of ffa238c3f7 from master