debops / ansible-apache

Manage and configure the Apache HTTP Server
GNU General Public License v3.0
2 stars 6 forks source link

Make sure SSL is disabled if requested #24

Closed ganto closed 7 years ago

ganto commented 7 years ago

Fix configuration when apache__https_enabled: False.

According to the documentation this setting should completely disable HTTPS support:

Should HTTPS be enabled by loading the required modules and creating HTTPS virtual hosts?

However, currently there will still be 301 redirects to https:// URLs in the vhost definition and also mod_ssl is still loaded. This PR will fix this.

ganto commented 7 years ago

HTTPS disabled is not really tested 😉

Not that I would want to use it like this, but it saves me from running the debops.pki role during the checkmk_server test suite. 😉