From 7e6ec3293acbb66875c336295cd2d43d69f1e34e Mon Sep 17 00:00:00 2001 From: administrator Date: Tue, 20 Feb 2024 17:58:10 +0800 Subject: [PATCH] Add start-apache --- start-apache | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 start-apache diff --git a/start-apache b/start-apache new file mode 100644 index 0000000..f68e5d6 --- /dev/null +++ b/start-apache @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +sed -i "s/Listen 80/Listen ${PORT:-80}/g" /etc/apache2/ports.conf +sed -i "s/:80/:${PORT:-80}/g" /etc/apache2/sites-enabled/* +apache2-foreground \ No newline at end of file