leave varnish enabled, don't enable remoteip by default

This commit is contained in:
Matthew Saunders Brown 2021-08-24 14:55:52 -07:00
parent 4af79477d2
commit 4cb36d5bd2

View File

@ -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. # set vhost subodmain to domain name of server, users may want to consider changing this to a custom domain.
vhostdomain=`hostname -d` vhostdomain=`hostname -d`
sed -i "s|.example.com|.$vhostdomain|g" /etc/apache2/mods-available/macro.conf 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|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|/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 # # sed -i "s|CustomLog|#CustomLog|g" /etc/apache2/sites-available/default-ssl.conf
@ -153,8 +154,8 @@ fi
# varnish # varnish
apt -y install varnish apt -y install varnish
systemctl disable varnish # systemctl disable varnish
service varnish stop # service varnish stop
cp -a etc/varnish/* /etc/varnish/ cp -a etc/varnish/* /etc/varnish/
find /etc/varnish/ -type d -exec chmod 755 {} + find /etc/varnish/ -type d -exec chmod 755 {} +
find /etc/varnish/ -type f -exec chmod 644 {} + find /etc/varnish/ -type f -exec chmod 644 {} +