author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 07 May 2023 00:41:20 +0300 | |
changeset 14 | 719ced1ac5c3 |
parent 13 | deb/apache-register-2048.bash@7ed40cd96e3a |
child 21 | 52f40bd9e114 |
permissions | -rw-r--r-- |
#!/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