Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
apache
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
webarch
apache
Commits
d869eebd
Commit
d869eebd
authored
3 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Updates for mod_md
parent
e0769a74
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#17048
passed
3 years ago
Stage: lint
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tasks/config.yml
+8
-0
8 additions, 0 deletions
tasks/config.yml
templates/http2.conf.j2
+40
-0
40 additions, 0 deletions
templates/http2.conf.j2
templates/mc3.conf.j2
+3
-0
3 additions, 0 deletions
templates/mc3.conf.j2
templates/webarch.conf.j2
+4
-1
4 additions, 1 deletion
templates/webarch.conf.j2
with
55 additions
and
1 deletion
tasks/config.yml
+
8
−
0
View file @
d869eebd
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
templates/http2.conf.j2
0 → 100644
+
40
−
0
View file @
d869eebd
# {{ 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
This diff is collapsed.
Click to expand it.
templates/mc3.conf.j2
+
3
−
0
View file @
d869eebd
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
templates/webarch.conf.j2
+
4
−
1
View file @
d869eebd
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment