zach-adams / hgv-deploy-full

This Ansible Playbook is designed to setup a Mercury-Like environment on a Production server without the configuration hassle.
103 stars 47 forks source link

Admin Bar Missing #45

Open mikerbrant opened 8 years ago

mikerbrant commented 8 years ago

I've installed three different VPSes with this stack and on all of them the Wordpress admin bar is missing on the public pages.

Any ideas how to resolve this?

mikerbrant commented 8 years ago

If I comment out THIS in the Varnish configuration, it solves the Admin Bar issue.

if (req.url ~ "((wp-(login|admin|comments-post.php|cron.php))|login|timthumb|wrdp_files)" || req.url ~ "preview=true" || req.url ~ "xmlrpc.php") { return (pass); } else { if ( !(req.http.cookie ~ "wpoven-no-cache") ) { unset req.http.cookie; } }

Please advise how I should change this so that I can be efficient, but also still see my admin bar?