diff -r f1b38aa4fa52 -r 52f40bd9e114 deb/apache-register-tips.bash --- a/deb/apache-register-tips.bash Sun May 07 12:48:30 2023 +0300 +++ b/deb/apache-register-tips.bash Sun May 07 13:04:33 2023 +0300 @@ -11,13 +11,29 @@ cat </etc/apache2/sites-available/$d.conf - DocumentRoot /srv/www/$d + DocumentRoot /srv/www/$d + ServerName $d.defun.work Require all granted + + + + DocumentRoot /srv/www/$d + ServerName $d.defun.work + + + Require all granted + + + SSLCertificateFile /etc/letsencrypt/live/defun.work/fullchain.pem + SSLCertificateKeyFile /etc/letsencrypt/live/defun.work/privkey.pem + Include /etc/letsencrypt/options-ssl-apache.conf + + EOF a2ensite $d -service apache2 restart +service apache2 reload