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

tweaks

parent 8fb45cbf
No related branches found
No related tags found
1 merge request!2MPM switching and TLS 1.3
Pipeline #9753 passed
......@@ -8,7 +8,7 @@
- libapache2-mpm-itk
state: absent
update_cache: false
when: '"mpm-itk" in apache_mods_disabled'
when: '"mpm_itk" in apache_mods_disabled'
- name: Apache FastCGI absent
apt:
......@@ -59,7 +59,7 @@
- libapache2-mpm-itk
state: present
update_cache: false
when: '"mpm-itk" in apache_mods_enabled'
when: '"mpm_itk" in apache_mods_enabled'
- name: Apache Suexec package present
apt:
......
......@@ -58,7 +58,7 @@
template:
src: templates/mpm_prefork.conf.j2
dest: /etc/apache2/mods-available/mpm_prefork.conf
when: ( "mpm-itk" in apache_mods_enabled ) or ( "php7.0" in apache_mods_enabled ) or ( "php7.3" in apache_mods_enabled )
when: ( "mpm_itk" in apache_mods_enabled ) or ( apache_phpfpm_mod in apache_mods_enabled )
- name: Apache ratelimit conf present
template:
......
......@@ -3,7 +3,7 @@
<VirtualHost 127.0.0.1:80>
ServerName localhost
{% if apache_mods_enabled is defined %}
{% if "mpm-itk" in apache_mods_enabled %}
{% if "mpm_itk" in apache_mods_enabled %}
<IfModule mpm_itk_module>
AssignUserID www-data www-data
</IfModule>
......@@ -35,7 +35,7 @@
AllowOverride AuthConfig Indexes FileInfo Limit
Require host localhost 127.0.0.1 ::1
{% if apache_mods_enabled is defined %}
{% if "php7.0" in apache_mods_enabled or "php7.2" in apache_mods_enabled or "php7.3" in apache_mods_enabled %}
{% if apache_phpfpm_mod in apache_mods_enabled %}
<IfModule php7_module>
php_admin_value doc_root /var/www/localhost
php_admin_value open_basedir /var/www/localhost/:/tmp/:/usr/share/php/
......
......@@ -12,8 +12,8 @@
MaxSpareServers 10
MaxRequestWorkers {{ apache_mpm_max_request_workers | default('150') }}
MaxConnectionsPerChild {{ apache_mpm_max_connections_per_child | default ('0') }}
{% if "mpm-itk" in apache_mods_enabled %}
# Fix for exim panic log issue with mod-itk
{% if "mpm_itk" in apache_mods_enabled %}
# Fix for exim panic log issue with mod_itk
LimitUIDRange 0 2000
{% endif %}
......
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