I want to write a configuration for an apache server which should work for apache-2.2 and -2.4 without alterations. Since there are a quite a few new modules in v2.4 which have to be loaded,and a few altered directives, I will need some conditional statements. What I'd like is something along the lines of
<If ApacheVersion >= 2.4>
LoadModule mod_only_in_2.4.so
</If>
but I haven't found the right expression yet. Can somebody point me in the right direction?
Clarification of my motives: I am developing a server which I want to be able to just copy onto a server and run without further host-dependent configuration. And since the machines can have either version of apache, I want a configuration which works in both cases.