aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-03-02 19:23:25 +0000
committerDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-03-04 01:24:15 +0000
commitf17e3be93d425f5554a806c0e847c34504a68873 (patch)
tree059e23543ccd0025dc800ad7f55e4f88346afb40
parentedee1c1af975e885903d2207f657c36275c2e220 (diff)
downloadboca-f17e3be93d425f5554a806c0e847c34504a68873.tar.gz
boca-f17e3be93d425f5554a806c0e847c34504a68873.zip
Remove Apache HTTPD commands from Makefile
The package Makefile contained Apache HTTPD commands, and some of them were repeated in the boca-web post installation maintainer script. The commands were removed from the Makefile, as this requires having a valid apache2 installation as a build dependency.
-rw-r--r--Makefile3
-rw-r--r--debian/boca-web.postinst8
2 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3675033..dcb2d35 100644
--- a/Makefile
+++ b/Makefile
@@ -16,9 +16,6 @@ install-bocawww:
install-bocaapache:
mkdir -p $(DESTDIR)/etc/apache2/sites-enabled/
cp tools/000-boca.conf $(DESTDIR)/etc/apache2/sites-enabled/000-boca.conf
- a2ensite default-ssl || echo a2ensite default-ssl FAILED
- a2enmod ssl || echo a2enmod ssl FAILED
- a2enmod socache_shmcb || echo a2enmod socache_shmcb FAILED
install-scripts:
mkdir -p $(DESTDIR)/usr/sbin/
diff --git a/debian/boca-web.postinst b/debian/boca-web.postinst
index bcfce75..824654c 100644
--- a/debian/boca-web.postinst
+++ b/debian/boca-web.postinst
@@ -12,6 +12,14 @@ systemctl stop apache2
# Ensure that apache's embedded php module is not loaded
a2dismod php8.1
+# Configure HTTPS in Apache
+# See https://www.arubacloud.com/tutorial/how-to-enable-https-protocol-with-apache-2-on-ubuntu-20-04.aspx
+# Enable SSL module
+a2enmod ssl
+
+# Enable default SSL Virtual Host
+a2ensite default-ssl
+
# Enable apache's shared object cache provider that uses a high-performance
# cyclic buffer inside a shared memory segment
# See https://httpd.apache.org/docs/2.4/socache.html