From 68d8b671dd8b94a89b507281c0d7c2e62b5b1c37 Mon Sep 17 00:00:00 2001 From: Keanu Taufan Date: Thu, 3 Oct 2024 19:09:27 +0700 Subject: [PATCH] task 15 --- BrokoliWebServer/15.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 BrokoliWebServer/15.sh diff --git a/BrokoliWebServer/15.sh b/BrokoliWebServer/15.sh new file mode 100644 index 0000000..1a902e7 --- /dev/null +++ b/BrokoliWebServer/15.sh @@ -0,0 +1,35 @@ +#!/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 + + + + Require all denied + + + 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