Configure varnish in mac ios localhost
Make apache to listen port 8080 ======================== Listen port 8080 in httpd.conf Change virtual host to 8080 Point varnish to web server ===================== vim /usr/local/etc/varnish/default.vcl # Default backend definition. Set this to point to your content server. backend default { .host = "127.0.0.1"; .port = "8080"; } Start varnish ========= varnishd -T 127.0.0.1:2000 -a 127.0.0.1:80 -b 127.0.0.1:8080 -s file,/tmp,500M -a => end point for varnish. When accessing http://localhost you are accessing varnish and then varnish talking to http://localhost:8080 -b => server address http://localhost:8080 In the above case your website non-cached version is available at http://localhost:8080 and cached version of available at http://localhost:80