Reputation: 2292
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?
Upvotes: 1
Views: 421
Reputation: 10953
Apache provides IfModule for this, see the docs.
IfModule
Use it like this:
<IfModule ssl_module> Include conf/extra/httpd-ssl.conf SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule>
Upvotes: 4