Automatically configure Apache

This commit is contained in:
Paul committed 2014-01-03 14:36:29 +00:00
1 parent b19f901960
commit 9828a079e0
2 files changed
+23

No files matched your search

+11
View File
@@ -1,8 +1,19 @@
#!/bin/sh
# This script runs each time the VM starts up
echo
cd /home/security/workshop
# Update repository
git pull origin master
# Update Apache configuration
cp build-vm/security-workshop.apache.conf /etc/apache2/sites-available/security-workshop.conf
a2dissite 000-default
a2ensite security-workshop
service apache2 reload
# Show welcome message
IP=`ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print \$1}'`
echo
+12
View File
@@ -0,0 +1,12 @@
<VirtualHost *:80>
DocumentRoot /home/security/workshop
<Directory "/home/security/workshop">
Options All
AllowOverride All
Require all granted
</Directory>
</VirtualHost>