I’m running Varnish in front of my WordPress site. To increase my cache hit stats I blocked cookies in my varnish configuration in default.vcl
# Drop any cookies sent to WordPress.
sub vcl_recv {
unset req.http.cookie;
}
# Drop any cookies WordPress tries to send back to the client.
sub vcl_fetch {
unset beresp.http.set-cookie;
}
I believe this is what is keeping me from logging in to wp-admin right now. I am continually redirected back to the login page. Any idea what kind of filter I need to pass into that cookie blocker? I’m not familiar with this configuration language.
You need to NOT drop cookies if the URL is from the admin section.
Like this:
Why not:
?