nicolargo / varnish-nginx-wordpress

A "simple" Varnish ang NGinx configuration for a Wordpress blog
307 stars 83 forks source link

Blank page if logged #32

Open marcoturi opened 8 years ago

marcoturi commented 8 years ago

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 commented 8 years ago

Found the problem. It's related with nginx and varnish 4 (not 3).

http://serverfault.com/questions/745234/nginx-varnish-php-fpm-blank-pages