Using Varnish with PHP

Brad Tarver idle at pobox.com
Wed Feb 15 17:11:31 CET 2017


oops. I guess varnish doesn't support 443. sorry. still, can be
used for 80




On Wed, Feb 15, 2017, at 10:01 AM, Brad Tarver wrote:

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

> They are plaintext on pastebin.

> 

> http://pastebin.com/4MgKWWUx -- 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:
> http://pastebin.com/u/meesteridle
> 

> 

> 

> 

> 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: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20170215/972edf31/attachment.html>


More information about the varnish-misc mailing list