Merge lp:~hloeung/ubuntu-repository-cache/missing-apache2-cgi-mod-2 into lp:ubuntu-repository-cache

Proposed by Haw Loeung
Status: Merged
Approved by: Benjamin Allot
Approved revision: 315
Merged at revision: 314
Proposed branch: lp:~hloeung/ubuntu-repository-cache/missing-apache2-cgi-mod-2
Merge into: lp:ubuntu-repository-cache
Diff against target: 19 lines (+2/-0)
1 file modified
templates/apache2/archive_ubuntu_com.conf (+2/-0)
To merge this branch: bzr merge lp:~hloeung/ubuntu-repository-cache/missing-apache2-cgi-mod-2
Reviewer Review Type Date Requested Status
Benjamin Allot Approve
Canonical IS Reviewers Pending
Review via email: mp+398492@code.launchpad.net

Commit message

Don't serve health-check files if cgid module isn't load

If the cgid module isn't loaded, apache will serve the health-check
script as a file resulting in a HTTP/200 so FEs will continue to try
send traffic to the unit. Instead, we want it to fail, 404.

To post a comment you must log in.
Revision history for this message
Benjamin Allot (ballot) wrote :

LGTM

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 314

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'templates/apache2/archive_ubuntu_com.conf'
2--- templates/apache2/archive_ubuntu_com.conf 2021-02-16 04:42:21 +0000
3+++ templates/apache2/archive_ubuntu_com.conf 2021-02-22 22:14:40 +0000
4@@ -33,6 +33,7 @@
5 </Directory>
6
7 {% if Enable_Healthcheck %}
8+ <IfModule cgid_module>
9 Alias /_health-check/ {{ DocumentRoot }}/health-check/
10 <Directory "{{ DocumentRoot }}/health-check/">
11 Options +ExecCGI
12@@ -41,6 +42,7 @@
13 Require all granted
14 </Directory>
15 ProxyPass /_health-check/ !
16+ </IfModule>
17 {% endif %}
18 # This mirror does not contain pool data. Instead, forward
19 # that through squid-deb-proxy.

Subscribers

People subscribed via source and target branches