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