1

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?

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

See Expressions in Apache HTTP Server.

1
  • You don't appear to need to enclose false (or true) in quotes. (Works with or without.) – MrWhite Sep 22 '20 at 1:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.