Duplicate GCI settings for SSL block.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 07 May 2023 12:48:06 +0300
changeset 19 5af5b246cf97
parent 18 7342ebcdd074
child 20 f1b38aa4fa52
Duplicate GCI settings for SSL block.
deb/apache-register-2048.bash
--- a/deb/apache-register-2048.bash	Sun May 07 12:44:53 2023 +0300
+++ b/deb/apache-register-2048.bash	Sun May 07 12:48:06 2023 +0300
@@ -21,6 +21,12 @@
 
 <IfModule mod_ssl.c>
   <VirtualHost 2048.defun.work:443>
+	DocumentRoot /srv/www/$d
+    ServerName $d.defun.work
+
+    <Directory "/srv/www/$d/">
+        Require all granted
+    </Directory>
 
     SSLCertificateFile /etc/letsencrypt/live/defun.work/fullchain.pem
     SSLCertificateKeyFile /etc/letsencrypt/live/defun.work/privkey.pem
@@ -30,4 +36,4 @@
 EOF
 
 a2ensite $d
-service apache2 restart
+service apache2 reload