The suggested method in the FAQ is:
I personally use a set of directives which is cross-compatible with Apache earlier than 2.4 and after 2.4:
(note that the example here is journal-specific)