Apache conditional config with if-else directives

apache-2.4httpd.conf

Rather than commenting/uncommenting alternative configuration settings in my httpd.conf file, I would like to use something like this:

<If "0">
  # ...
</If>
<Else>
  # ...
</Else>

Of course, the expression in my If directive throws an error. What would be the simplest expression to achieve this?

Best Answer

<If "false">
...
</If>

See Expressions in Apache HTTP Server.

Related Topic