0)
yum -y install varnish && systemctl enable varnish && systemctl start varnish sed -ie 's/VARNISH_LISTEN_PORT=6081/VARNISH_LISTEN_PORT=8888/' /etc/varnish/varnish.params echo 'DAEMON_OPTS="-p default_ttl=2419200"' >> /etc/varnish/varnish.params # Configure Apache for Varnish sed -ie 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf echo 'RemoteIPHeader X-Forwarded-For' >> /etc/httpd/conf/httpd.conf echo "RemoteIPInternalProxy $IP" >> /etc/httpd/conf/httpd.conf sed -ie 's/%h/%a/' /etc/httpd/conf/httpd.conf
1) file=/etc/varnish/default.vcl
cat > /etc/varnish/default.vcl << 'EOT' EOT
2)
systemctl restart httpd && systemctl restart varnish && systemctl restart pound
- Log in to post comments
- Copy all the steps