summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 21:49:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 21:49:29 +0000
commit35816808f3fab8f66e85b52071ab593f35de06db (patch)
tree1a9f52367a5d4dd2d08ccd82895b78e221d94fa8 /debian
parentTrimming default sites. (diff)
downloadapache2-35816808f3fab8f66e85b52071ab593f35de06db.tar.xz
apache2-35816808f3fab8f66e85b52071ab593f35de06db.zip
Enabling default-ssl site by default.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian')
-rw-r--r--debian/apache2.postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/apache2.postinst b/debian/apache2.postinst
index 67a00f3..b02f127 100644
--- a/debian/apache2.postinst
+++ b/debian/apache2.postinst
@@ -71,6 +71,11 @@ install_default_site()
a2ensite -q 000-default
fi
+ if [ ! -L /etc/apache2/sites-enabled/000-default-ssl.conf -a \
+ ! -f /etc/apache2/sites-enabled/000-default-ssl.conf ]; then
+ a2ensite -q 000-default-ssl
+ fi
+
touch /var/log/apache2/error.log /var/log/apache2/access.log
chown root:adm /var/log/apache2/error.log /var/log/apache2/access.log
chmod 0640 /var/log/apache2/error.log /var/log/apache2/access.log