Skip to content
Snippets Groups Projects
Commit 2ba2287b authored by Chris Croome's avatar Chris Croome
Browse files

Config for Apache less than 2.4 removed

parent db94cbae
No related branches found
No related tags found
No related merge requests found
......@@ -2,58 +2,21 @@
# localhost virtual host for server-status and other things for munin stats
<VirtualHost 127.0.0.1:80>
ServerName localhost
<IfModule mod_status.c>
<IfModule status_module>
<Location /server-status>
Require host localhost 127.0.0.1 ::1
SetHandler server-status
<IfModule mod_version.c>
<IfVersion < 2.4>
Order allow,deny
Deny from all
Allow from localhost 127.0.0.1 ::1
</IfVersion>
<IfVersion >= 2.4>
Require host localhost 127.0.0.1 ::1
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Allow from localhost 127.0.0.1 ::1
</IfModule>
<IfModule mod_authz_core.c>
Require host localhost 127.0.0.1 ::1
</IfModule>
</IfModule>
</Location>
</IfModule>
DocumentRoot "/var/www/localhost"
<Directory "/var/www/localhost">
Require host localhost 127.0.0.1 ::1
Options +Indexes +SymlinksIfOwnerMatch -MultiViews -Includes -ExecCGI
AllowOverride AuthConfig Indexes FileInfo Limit
<IfModule php7_module>
php_admin_value doc_root /var/www/localhost
php_admin_value open_basedir /var/www/localhost/:/tmp/:/usr/share/php/
</IfModule>
<IfModule mod_version.c>
<IfVersion < 2.4>
Order allow,deny
Deny from all
Allow from localhost 127.0.0.1 ::1
</IfVersion>
<IfVersion >= 2.4>
Require host localhost 127.0.0.1 ::1
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Allow from localhost 127.0.0.1 ::1
</IfModule>
<IfModule mod_authz_core.c>
Require host localhost 127.0.0.1 ::1
</IfModule>
</IfModule>
</Directory>
</VirtualHost>
......@@ -10,8 +10,13 @@
- lynx
register: apache_packages
# TODO
#- name: Apache modules disabled
- name: Apache conf disabled
command: "a2dismod {{ item }}"
args:
removes: /etc/apache2/conf-enabled/{{ item }}
with_items:
- serve-cgi-bin.conf
register: apache_conf
- name: Apache modules enabled
apache2_module:
......@@ -70,4 +75,4 @@
msg: "{{ apache2ctl_configtest.stdout }}"
when: '"Syntax OK" not in apache2ctl_configtest.stdout'
when: apache_packages.changed or apache_modules.changed or apache_ssl.changed or apache_localhost.changed
when: apache_packages.changed or apache_conf.changed or apache_modules.changed or apache_ssl.changed or apache_localhost.changed
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment