--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/apache-register-blog.bash Sun May 07 00:41:20 2023 +0300
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+set -x
+
+# To meet uploading requirements.
+apt install rsync
+
+d=blog
+mkdir -p /srv/www/$d
+chown user:user /srv/www/$d
+
+cat <<EOF >/etc/apache2/sites-available/$d.conf
+<VirtualHost $d.defun.work:*>
+ DocumentRoot /srv/www/$d
+
+ <Directory "/srv/www/$d/">
+ Require all granted
+ </Directory>
+</VirtualHost>
+EOF
+
+a2ensite $d
+service apache2 restart