homebrew – How to set up Varnish locally on a Mac OS with MAMP Pro?

Spread the love

I’m trying to make Varnish work on my local Mac with MAMP Pro (running a Drupal website). I have installed Varnish with Homebrew

brew install varnish

So far so good. Then I start Varnish with the following command :

sudo varnishd -a -T -f /usr/local/etc/varnish/drupal.vcl -s file,/tmp,500M

MAMP Pro is set to port 80 which is the conf I have in my .vcl file. The problem is Varnish does not cache the page when I go to my http://drupal.local website (All the caching conf from Drupal is properly set up as it works on a centOS server).

Any idea about what I’m missing ?

Author: Dhanraj7978

Leave a Reply

Your email address will not be published. Required fields are marked *