1

Is there a possibility to execute a part of a configuration file in Apache 2.4 only if a specific mod (e.g. mod_wsgi) is enabled?

F.M.F.
  • 1,929
  • 3
  • 23
  • 42

1 Answers1

3

Apache provides IfModule for this, see the docs.

Use it like this:

<IfModule ssl_module>
    Include conf/extra/httpd-ssl.conf
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
</IfModule>
Marged
  • 10,577
  • 10
  • 57
  • 99