From 7c21f467991dde11f18a41bd1ffc73c794f5ad55 Mon Sep 17 00:00:00 2001 From: Keanu Taufan Date: Thu, 3 Oct 2024 15:05:35 +0700 Subject: [PATCH] task 14 --- BrokoliWebServer/14.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 BrokoliWebServer/14.sh diff --git a/BrokoliWebServer/14.sh b/BrokoliWebServer/14.sh new file mode 100644 index 0000000..f068433 --- /dev/null +++ b/BrokoliWebServer/14.sh @@ -0,0 +1,31 @@ +#!/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 +Indexes + + + + Options +FollowSymLinks -Multiviews + AllowOverride All + + + Alias "/img" "/var/www/vitamin.brokoli.f01/public/images" + + ErrorLog \${APACHE_LOG_DIR}/error.log + CustomLog \${APACHE_LOG_DIR}/access.log combined + +EOL + +service apache2 reload \ No newline at end of file