File: 0015-Add-expires-as-a-needed-apache-module-on-Debian.patch

package info (click to toggle)
openqa 5.1764349525.ffb594867-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,264 kB
  • sloc: perl: 57,599; sql: 26,462; javascript: 8,466; xml: 2,229; sh: 1,705; makefile: 443; python: 249
file content (22 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Philip Hands <phil@hands.com>
Date: Thu, 10 Feb 2022 16:36:04 +0100
Subject: Add 'expires' as a needed apache module on Debian

Forwarded: no
---
 script/configure-web-proxy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script/configure-web-proxy b/script/configure-web-proxy
index a97c618..60dc6b7 100755
--- a/script/configure-web-proxy
+++ b/script/configure-web-proxy
@@ -62,7 +62,7 @@ if [[ $web_proxy == "nginx" ]]; then
     sed -i -e 's/^\([^#]*server_name[[:space:]]\+localhost;\)/#\1/' /etc/nginx/nginx.conf
 elif [[ $web_proxy == "apache" || $web_proxy == "apache2" ]]; then
     echo "Setting up apache"
-    for i in headers proxy proxy_http proxy_wstunnel rewrite; do a2enmod $i; done
+    for i in headers proxy proxy_http proxy_wstunnel rewrite expires; do a2enmod $i; done
     sed "s/#ServerName.*$/ServerName $(hostname)/" "${vhosts_dir}/openqa.conf.template" > "${vhosts_dir}/openqa.conf"
     if [[ -n "$web_port" ]]; then
         sed -i "s/^Listen.*$/Listen $web_port/" "${etc_proxy}/listen.conf"