add some modules, include http2
This commit is contained in:
@@ -15,3 +15,10 @@ apache_use_ssl: true
|
|||||||
apache_use_stats: true
|
apache_use_stats: true
|
||||||
apache_user: "{{ apache_server_name | regex_search( '([^.]+)' ) }}"
|
apache_user: "{{ apache_server_name | regex_search( '([^.]+)' ) }}"
|
||||||
apache_use_database: false
|
apache_use_database: false
|
||||||
|
apache_modules_list:
|
||||||
|
headers
|
||||||
|
http2
|
||||||
|
rewrite
|
||||||
|
proxy
|
||||||
|
proxy_http
|
||||||
|
proxy_fcgi
|
||||||
|
|||||||
@@ -70,4 +70,13 @@
|
|||||||
- name: goaccess
|
- name: goaccess
|
||||||
import_tasks: goaccess.yml
|
import_tasks: goaccess.yml
|
||||||
when: apache_use_stats
|
when: apache_use_stats
|
||||||
tags: stats
|
tags: stats
|
||||||
|
|
||||||
|
|
||||||
|
- name: enable some modules
|
||||||
|
when: ansible_os_family == 'Debian'
|
||||||
|
tags: modules
|
||||||
|
community.general.apache2_module:
|
||||||
|
state: present
|
||||||
|
name: "{{ item }}"
|
||||||
|
loop: "{{ apache_modules list }}"
|
||||||
@@ -26,6 +26,7 @@
|
|||||||
ServerAlias {{ alias }}
|
ServerAlias {{ alias }}
|
||||||
{%endfor%}
|
{%endfor%}
|
||||||
{%endif%}
|
{%endif%}
|
||||||
|
Protocols h2 http/1.1
|
||||||
DocumentRoot {{ apache_document_root }}
|
DocumentRoot {{ apache_document_root }}
|
||||||
SSLEngine on
|
SSLEngine on
|
||||||
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
|
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
|
||||||
|
|||||||
Reference in New Issue
Block a user