Varnish & SSL

wordpress

#1

I changed my DreamPress site to https and was wondering what impact that had on Varnish. I used the isvarnishworking.com test and it said it’s running, but that the age is less than 1. The headers it shows have stuff like no-cache in the mix. Was wondering if it was https that was messing that up, or if it’s even possible to use caching on https.

Any thoughts and/or best practices for that?


#2

Hi Guygg,

While https and SSL do work fine on DreamPress, the Varnish caching aspect, unfortunately, will not work with https. Other caching can be configured for it via plugin, however. SSL requests are encrypted and Varnish does not know how to read those.

If your site does rely on Varnish caching for a performance boost, it may be noticeably slower over https, otherwise it all works as it should.

https://www.varnish-cache.org/docs/trunk/phk/ssl.html

Hope this helps!


#3

If I use a caching plugin, would there be any kinds of conflicts with Varnish? I don’t see any domain setting to enable or disable Varnish, so I didn’t know if it might dislike using a alternate caching plugin and cause any weirdness.

Also, any best recommended caching plugin for me to use on a DreamPress domain? W3 Total, perhaps?

Thanks


#4

FWIW, for anybody else interested, WP Super Cache seems to be working well for me.


#5

Varnish and SSL is an ongoing topic!

The basic solution is that you need to put something infront of your Varnish instance that supports SSL (normally an nginx server).

Or ofcourse you could use a cloud Varnish solution like https://www.section.io which takes care of SSL for you


#6

Just FYI, this is something we’re working on so you don’t have to put anything in front of Varnish, we’ll do it for you.


#7

Mika - Any idea when this will be rolled out (if it hasn’t already)? Would love to see this support as SSL is looking more and more appealing.


#8

It’s fixed! Goodness, we updated it … in September? October maybe. SSL and Varnish are friends :slight_smile:

http://wiki.dreamhost.com/DreamPress#How_do_I_use_SSL_on_DreamPress.3F has been updated too.


#9

Not sure about the advisability of resurrecting an ancient thread, but I’m having similar difficulties with Varnish and SSL on Concrete5. Is there an easy fix for this? I would love to just turn Varnish off but can’t figure out how to do that.


#10

I saw your other post where you announced you solved the issue. Let’s close this ancient thread :slight_smile: There is usually very little value in resurrecting them anyway: things have changed in so many years so whatever caused the issue in the first place, most likely is not there anymore and a new investigation needs to be done.


#12