From df6abd185140f0beabde1ed446b6e38749445c30 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Tue, 19 Nov 2024 22:52:50 -0500 Subject: [PATCH] add post-installation configure script for mocha-suv --- mocha-suv/configure | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 mocha-suv/configure diff --git a/mocha-suv/configure b/mocha-suv/configure new file mode 100644 index 0000000..c17f24f --- /dev/null +++ b/mocha-suv/configure @@ -0,0 +1,17 @@ +# mocha-suv post-installation configuration script +# to be run on the SUV virtual machine (if building manually) + +ENABLE_SSL=1 + +if [ $ENABLE_SSL -eq 1 ]; then + # enable SSL + echo "Listen 443" > /etc/apache2/ports.conf + a2enmod ssl +fi + +# enable rewrite module +a2enmod rewrite + +# restart Apache +systemctl restart apache2 +