#!/bin/bash

set -x

# To meet uploading requirements.
apt install rsync

d=2048
mkdir -p /srv/www/$d
chown user:user /srv/www/$d

cat <<EOF >/etc/apache2/sites-available/92-$d.conf
<VirtualHost $d.defun.work:*>
	DocumentRoot /srv/www/$d
</VirtualHost>
EOF

a2ensite $d
service apache2 restart
