Install Varnish on CentOS/RedHat/SL 5 or 6 Rumi, December 5, 2012December 5, 2012 Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. It is installed in front of the web application and it speeds up the web application significantly. Since varnish is not available in CentOS repo, you have to add the EPEL repo. However Varnish suggests you to add its own repo to always get the latest version. rpm –nosignature -i http://repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release-3.0-1.noarch.rpm The –no-signature is only needed on initial installation, since the Varnish GPG key is not yet in the yum keyring Now lets install varnish # yum install varnish Make sure it can handle server reboots 🙂 # chkconfig varnish on Lets change some parameters to suit our enviornment. # vi /etc/varnish/default.vcl # This is a basic VCL configuration file for varnish. See the vcl(7) # man page for details on VCL syntax and semantics. # # Default backend definition. Set this to point to your content # server. # backend default { .host = "172.16.166.10"; //here goes your application server ip address .port = "80"; //the port number accepting web requests } Finally lets start varnish # service varnish start This is a very basic setup, you may tweak it a little more according to your requirement. Related Administrations Configurations (Linux) CentOSRedhatSLVarnish
Install and Secure Redis on CentOS 7 July 21, 2021 Step 1 – Install and Enable Remi Repository Firstly, we will add the Remi repository to the CentOS 7 system. The Remi repository provides the latest version of Redis package for our installation. Before adding the Remi repository, let’s install the EPEL repository and yum utility packages. sudo yum install… Read More
Zimbra Letsencrypt SSL Renew – Zimbra 8.6 September 1, 2018 Let’s Begin: This works if you already have an expired letsencrypt ssl certificate and assuming you have already deployed SSL in you zimbra system. However, if you come up here already, and would like to know how to setup letsencrypt on your system you may read my other article here:… Read More
Using NGinx to serve static files and Apache for dynamic September 6, 2019 Apache is a great web-server, but it has a pretty heavy memory footprint. It can get quite restrictive quite quickly, especially if you’re on a system will limited resources (given how many people now run on a VPS, and the poor disk IO of these systems it’s all the more… Read More