Updated SSL section of forward proxy.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 07 May 2023 13:26:22 +0300
changeset 23 7ec5ac6da905
parent 22 5d4380dda5ad
child 24 2f6cd2c43f30
Updated SSL section of forward proxy.
deb/apache-register-forward-proxy.bash
--- a/deb/apache-register-forward-proxy.bash	Sun May 07 13:24:09 2023 +0300
+++ b/deb/apache-register-forward-proxy.bash	Sun May 07 13:26:22 2023 +0300
@@ -27,12 +27,15 @@
 
 <IfModule mod_ssl.c>
   <VirtualHost $d.defun.work:443>
-	DocumentRoot /srv/www/$d
-    ServerName $d.defun.work
+    ProxyRequests On
+    ProxyVia On
+
+    Require ip 46.118
 
-    <Directory "/srv/www/$d/">
-        Require all granted
-    </Directory>
+    LogLevel info ssl:warn
+
+    ErrorLog ${APACHE_LOG_DIR}/error_forward_proxy.log
+    CustomLog ${APACHE_LOG_DIR}/access_forward_proxy.log
 
     SSLCertificateFile /etc/letsencrypt/live/defun.work/fullchain.pem
     SSLCertificateKeyFile /etc/letsencrypt/live/defun.work/privkey.pem