1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
From: Philip Hands <phil@hands.com>
Date: Tue, 16 Feb 2021 15:38:38 +0100
Subject: Debian tweaks for apache config
Note that we also sed vhosts.d to sites-available.d in
debian/rules
Forwarded: not-needed
---
etc/apache2/vhosts.d/openqa-ssl.conf.template | 14 +++++---------
etc/apache2/vhosts.d/openqa.conf.template | 1 +
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/etc/apache2/vhosts.d/openqa-ssl.conf.template b/etc/apache2/vhosts.d/openqa-ssl.conf.template
index d23a80a..ca48d92 100644
--- a/etc/apache2/vhosts.d/openqa-ssl.conf.template
+++ b/etc/apache2/vhosts.d/openqa-ssl.conf.template
@@ -1,12 +1,12 @@
# sample apache config file for the ssl enabled openqa vhost.
# At the very minimum you need to set the ServerName.
-# Note that this file will be ignored unless "SSL" is added to
-# APACHE_SERVER_FLAGS in /etc/sysconfig/apache2 (at least under
-# openSUSE).
+# There is a matching file nearby for non-ssl vhosts (openqa.conf.template) that
+# describes how to set things up, which also applies when setting up SSL.
+#
+# For SSL, you'll also need to load:
-<IfDefine SSL>
-<IfDefine !NOSSL>
+# a2enmod ssl
<VirtualHost *:443>
@@ -26,7 +26,3 @@
Include /etc/apache2/vhosts.d/openqa-common.inc
</VirtualHost>
-
-</IfDefine>
-</IfDefine>
-
diff --git a/etc/apache2/vhosts.d/openqa.conf.template b/etc/apache2/vhosts.d/openqa.conf.template
index 98af74a..ae3b1e7 100644
--- a/etc/apache2/vhosts.d/openqa.conf.template
+++ b/etc/apache2/vhosts.d/openqa.conf.template
@@ -17,6 +17,7 @@
# a2enmod proxy_http
# a2enmod proxy_wstunnel
# a2enmod rewrite
+# a2enmod expires
<VirtualHost *:80>
|