Sample Header Ad - 728x90

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

2 votes
1 answer
613 views
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 127.0.0.1:8080 -T 127.0.0.1:6082 -f /usr/local/etc/varnish/drupal.vcl -s file,/tmp,500M The varnish child start and I start to monitor with : varnishstat 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 ?
Asked by pbonnefoi (141 rep)
Feb 8, 2023, 10:15 AM
Last activity: Apr 22, 2024, 09:25 PM