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
Publishing long domain key SPF TXT records in bind9 September 5, 2017 If your bind is throwing error with long TXT data, you can do the following means to concatenate: You are using commas to separate your key/value pairs in your record instead of semi-colons. Change it to: a9d04665528b593d263a6e5256648c99._domainkey IN 1800 TXT ( “k=rsa;p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAz2/ZfhxSI/A” “bqgh0amM8ylrlosirWeKShUhq7fg12aYmRwOqq9hIzO0Fcz1BzfgHVu6HU++rC5” “QoUK0JQK/nk4jwkDgvG2di2ZYmAvEbY/VeiK1x/TG0p1Iczr2k6Bj0gEAb/YGD2” “YbwrwAi4bDXwoPsYuuNn9TB3jjyWKu/dvOsqhff1/4Wc+FkOi0ClvgrXiklN28X” “TLjyjSyU794ntIoegXxrfwcwkhfPMvuqcnhfIC0Z8L71M4WR4SoHyNHVfBtNlUv” “VNROiXlMxtxnNQvfViSwz6LC8bYIxeAba3hSXPTChKu3qZtfR0o3jFwEWAfLQdg” “Ixler0jMEoAyJmfQIDAQAB”) Related Read More
NFS Server and Client on Debian 6/7 March 13, 2015 Assumptions: NFS Server IP: 172.16.5.100 NFS Client Node1: 172.16.5.101 NFS Client Node2: 172.16.5.102 NFS Client Node3: 172.16.5.103 NFS Client Node4: 172.16.5.104 On the NFS Server: Install nfs-kernel-server Install nfs-kernel-server and nfs-common Install nfs-common on the computer that has the files to be shared. apt-get update && sudo apt-get install nfs-kernel-server nfs-common Edit the exports… Read More
Install and configure ClamAV Antivirus on CentOS 6 September 5, 2017 Enable EPEL repository CentOS 6.x 32-bit: # rpm –ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm CentOS 6.x 64-bit: # rpm –ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Check the repository list. Related Read More