summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 02:06:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 02:06:01 +0000
commitaf441f9ab9929688f632c134ce34d345e63eee17 (patch)
tree33d63ae18bc013a614573bea2fba6bfdcaff7a2f
parentTrimming default sites. (diff)
downloadapache2-af441f9ab9929688f632c134ce34d345e63eee17.tar.xz
apache2-af441f9ab9929688f632c134ce34d345e63eee17.zip
Enabling default-ssl site by default.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/apache2.postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/apache2.postinst b/debian/apache2.postinst
index c502970..a0be807 100644
--- a/debian/apache2.postinst
+++ b/debian/apache2.postinst
@@ -78,6 +78,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