• Hi,
    When I have page cache to disk enhanced enabled, w3 total cache creates nginx conf.
    That nginx conf have a bug (lacking ; after “text/xml xml_gzip”) here:
    location ~ /wp-content/cache/page_enhanced.*gzip$ {
    gzip off;
    types {
    text/xml xml_gzip
    }
    default_type text/html;
    expires modified 3600s;
    add_header Vary “Accept-Encoding, Cookie”;
    add_header Pragma “public”;
    add_header Cache-Control “max-age=3600, public”;
    add_header Content-Encoding gzip;
    }
    # END W3TC Page Cache cache

Viewing 3 replies - 1 through 3 (of 3 total)
  • I can confirm that error, seeing the sam behaviour and nginx refusing to start after W3TC changes its nginx config file.

    It seems to result from line 1480 in PgCache_Environment.php. Adding a “;” in front of \n might help as a temporary solution.

    I have the same problem :-/

    Plugin Contributor gidomanders

    (@gidomanders)

    It is fixed in version 0.9.7

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Nginx.conf bug’ is closed to new replies.