Added other sites to Apache.
--- /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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/apache-register-cooking.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=cooking
+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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/apache-register-gadict.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=gadict
+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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/apache-register-resume.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=resume
+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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/apache-register-stat.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=stat
+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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/apache-register-test.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=test
+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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/apache-register-tips.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=tips
+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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/apache-register-welcome.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=welcome
+mkdir -p /srv/www/$d
+chown user:user /srv/www/$d
+
+cat <<EOF >/etc/apache2/sites-available/$d.conf
+<VirtualHost defun.work:*>
+ DocumentRoot /srv/www/$d
+
+ <Directory "/srv/www/$d/">
+ Require all granted
+ </Directory>
+</VirtualHost>
+EOF
+
+a2ensite $d
+service apache2 restart