Using Varnish with PHP

Brad Tarver idle at
Wed Feb 15 17:01:13 CET 2017

I have a  working config file for php/wordpress/varnish/nginx if you'd
like to take a look.

They are plaintext on pastebin. -- varnishd 4.0 /etc/varnish/default.vcl for WordPress caching

Based on the content of the config, you would need your nginx vhost
running on port 8080 and varnish would run on port 80 and/or 443. I have
other PHP/nginx/varnish examples here:

On Tue, Feb 14, 2017, at 11:38 PM, Pinakee Biswas wrote:

> Hi,


> Not sure if this is the right forum but would appreciate if you could
> let me know how to serve PHP pages using Varnish. We have wordpress
> (Blog) hosted on our server. Varnish sits behind Nginx in the stack.
> Currently, PHP is served directly by Nginx using PhpFpm. We would like
> to use varnish to cache wordpress pages.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list