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

Updates for mod_md

parent e0769a74
No related branches found
No related tags found
No related merge requests found
Pipeline #17048 passed
......@@ -50,6 +50,14 @@
group: root
mode: 0644
- name: Custom Apache http2 config available
template:
src: http2.conf.j2
dest: /etc/apache2/mods-available/http2.conf
owner: root
group: root
mode: 0644
- name: Custom Apache ssl.conf available
template:
src: ssl.conf.j2
......
# {{ ansible_managed }}
# mod_http2 doesn't work with mpm_prefork
<IfModule !mpm_prefork>
{% if apache_mods_enabled is defined and "md" in apache_mods_enabled %}
Protocols h2 h2c http/1.1 acme-tls/1
{% else %}
Protocols h2 h2c http/1.1
{% endif %}
# # HTTP/2 push configuration
#
# H2Push on
#
# # Default Priority Rule
#
# H2PushPriority * After 16
#
# # More complex ruleset:
#
# H2PushPriority * after
# H2PushPriority text/css before
# H2PushPriority image/jpeg after 32
# H2PushPriority image/png after 32
# H2PushPriority application/javascript interleaved
#
# # Configure some stylesheet and script to be pushed by the webserver
#
# <FilesMatch "\.html$">
# Header add Link "</style.css>; rel=preload; as=style"
# Header add Link "</script.js>; rel=preload; as=script"
# </FilesMatch>
# Since mod_http2 doesn't support the mod_logio module (which provide the %O format),
# you may want to change your LogFormat directive as follow:
#
# LogFormat "%v:%p %h %l %u %t \"%r\" %>s %B \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
# LogFormat "%h %l %u %t \"%r\" %>s %B \"%{Referer}i\" \"%{User-Agent}i\"" combined
# LogFormat "%h %l %u %t \"%r\" %>s %B" common
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
......@@ -10,6 +10,9 @@ LogFormat "%I %O" bandwidth
# HTTP/2 https://httpd.apache.org/docs/trunk/mod/mod_http2.html
Protocols h2 h2c http/1.1
ProtocolsHonorOrder Off
{% elif apache_mods_enabled is defined and "http2" in apache_mods_enabled and "md" in apache_mods_enabled %}
Protocols h2 h2c http/1.1 acme-tls/1
ProtocolsHonorOrder On
{% endif %}
# Let's Encrypt
# Alias "/.well-known/acme-challenge" "/var/www/html/.well-known/acme-challenge"
......
......@@ -8,8 +8,11 @@ LogFormat "%I %O" bandwidth
{% if apache_mods_enabled is defined and "http2" in apache_mods_enabled %}
# HTTP/2 https://httpd.apache.org/docs/trunk/mod/mod_http2.html
Protocols h2 h2c http/1.1
Protocols h2 h2c http/1.1
ProtocolsHonorOrder Off
{% elif apache_mods_enabled is defined and "http2" in apache_mods_enabled and "md" in apache_mods_enabled %}
Protocols h2 h2c http/1.1 acme-tls/1
ProtocolsHonorOrder On
{% endif %}
# Let's Encrypt
# Alias "/.well-known/acme-challenge" "/var/www/html/.well-known/acme-challenge"
......
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