Describe the bug
Create vhost file for apache 2.4 not correct. In apache 2.2 subdirectory deny all but for apache 2.4 subdirectory allow all.
{% for my_path in directory_paths %}
<Directory "{{ my_path }}">
{% if apache_version|string() == '2.4' %}
Require all granted
{% else %}
AllowOverride None
Order Deny,Allow
Deny from all
{% endif %}
</Directory>
{% for my_path in directory_paths %}
<Directory "{{ my_path }}">
{% if apache_version|string() == '2.4' %}
Require all denied
{% else %}
AllowOverride None
Order Deny,Allow
Deny from all
{% endif %}
</Directory>
Describe the bug Create vhost file for apache 2.4 not correct. In apache 2.2 subdirectory deny all but for apache 2.4 subdirectory allow all.
Example rules from apache site http://httpd.apache.org/docs/current/upgrading.html
Installation method/version
Ansible Version
Targetted hosts Concerns the following OS(es):
Expected behavior
Require all granted -> Require all denied