From 4cb36d5bd28f2d6209f0b30b4ae3751745a1aa2b Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Tue, 24 Aug 2021 14:55:52 -0700 Subject: [PATCH] leave varnish enabled, don't enable remoteip by default --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index f0a1b25..a4d1c23 100755 --- a/install.sh +++ b/install.sh @@ -66,7 +66,8 @@ chown root:root /etc/apache2/mods-available/*.conf # set vhost subodmain to domain name of server, users may want to consider changing this to a custom domain. vhostdomain=`hostname -d` sed -i "s|.example.com|.$vhostdomain|g" /etc/apache2/mods-available/macro.conf -a2enmod proxy_fcgi rewrite headers expires ssl http2 remoteip macro +# a2enmod proxy_fcgi rewrite headers expires ssl http2 remoteip macro +a2enmod proxy_fcgi rewrite headers expires ssl http2 macro # # sed -i "s|CustomLog|#CustomLog|g" /etc/apache2/sites-available/000-default.conf sed -i "s|/var/www/html|/srv/www/html|g" /etc/apache2/sites-available/000-default.conf # # sed -i "s|CustomLog|#CustomLog|g" /etc/apache2/sites-available/default-ssl.conf @@ -153,8 +154,8 @@ fi # varnish apt -y install varnish -systemctl disable varnish -service varnish stop +# systemctl disable varnish +# service varnish stop cp -a etc/varnish/* /etc/varnish/ find /etc/varnish/ -type d -exec chmod 755 {} + find /etc/varnish/ -type f -exec chmod 644 {} +