From ef9c522c0ecbdcbdecc23cbcd34f6f98c22c82c3 Mon Sep 17 00:00:00 2001 From: Keanu Taufan Date: Thu, 3 Oct 2024 14:52:21 +0700 Subject: [PATCH] task 13 --- BrokoliWebServer/13.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 BrokoliWebServer/13.sh diff --git a/BrokoliWebServer/13.sh b/BrokoliWebServer/13.sh new file mode 100644 index 0000000..c52657a --- /dev/null +++ b/BrokoliWebServer/13.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +cat > /etc/apache2/sites-available/vitamin.conf < + ServerName vitamin.brokoli.f01.com + ServerAlias www.vitamin.brokoli.f01.com + + ServerAdmin webmaster@localhost + DocumentRoot /var/www/vitamin.brokoli.f01 + + + Options +Indexes + + + + Options +FollowSymLinks -Multiviews + AllowOverride All + + + ErrorLog \${APACHE_LOG_DIR}/error.log + CustomLog \${APACHE_LOG_DIR}/access.log combined + +EOL + +cat > /var/www/vitamin.brokoli.f01/.htaccess <