Control Web Panel

WebPanel => Installation => Topic started by: driftwood on July 08, 2016, 07:42:34 PM

Title: Varnish + Wordpress config ?
Post by: driftwood on July 08, 2016, 07:42:34 PM
Has anyone managed add any configuration to Varnish and restart it ?

For example I want to add the standard setting to take cookies out the cache but the server doesn't start with this in the default.vcl

# Remove the wp-settings-1 cookie
set req.http.Cookie = regsuball(req.http.Cookie, "wp-settings-1=[^;]+(; )?", "")
;

# Remove the wp-settings-time-1 cookie
set req.http.Cookie = regsuball(req.http.Cookie, "wp-settings-time-1=[^;]+(; )?"
, "");

# Remove the wp test cookie
set req.http.Cookie = regsuball(req.http.Cookie, "wordpress_test_cookie=[^;]+(;
)?", "");
Title: Re: Varnish + Wordpress config ?
Post by: driftwood on July 08, 2016, 10:05:17 PM
Doesn't matter has I've removed Varnish, it was slowing down my sites.

Would it be possible to install varnish 4 without messing up CWP?