varnish-nginx-wordpress icon indicating copy to clipboard operation
varnish-nginx-wordpress copied to clipboard

Blank page if logged

Open marcoturi opened this issue 8 years ago • 1 comments

Hi, I'm using the varnish 4 file for wordpress. Those 2 lines seems to be responsable of blank pages for logged users.

    # Check the cookies for wordpress-specific items
    if (req.http.Cookie ~ "wordpress_" || req.http.Cookie ~ "comment_") {
        #return (pass); <- THIS
    }
    if (!req.http.cookie) {
        unset req.http.cookie;
    }

    # --- End of Wordpress specific configuration

    # Did not cache HTTP authentication and HTTP Cookie
    if (req.http.Authorization || req.http.Cookie) {
        # Not cacheable by default
        #return (pass); <- AND THIS
    }

I'm using nginx and apache with a configuration a little bit different from this repository. How can i fix it ?

marcoturi avatar Jan 04 '16 01:01 marcoturi