author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 07 May 2023 00:15:28 +0300 | |
changeset 10 | 6a6933bfce58 |
parent 9 | 096e320e01b0 |
child 11 | a6a75053c129 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deb/apache-resiter-2048.bash Sun May 07 00:15:28 2023 +0300 @@ -0,0 +1,15 @@ +#!/bin/bash + +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 +EOF + +a2ensite $d +service apache2 restart