• Bug on nginx config from W3TC

    location ~ /wp-content/cache/page_enhanced.*gzip$ {
        gzip off;
        types {
            text/xml xml_gzip
        }
        default_type text/html;
        add_header X-Frame-Options "SAMEORIGIN";
        add_header X-Content-Type-Options "nosniff";
        add_header X-XSS-Protection "1; mode=block";
        add_header Strict-Transport-Security "max-age=604800; includeSubdomains" always;
        expires modified 604800s;
        add_header X-Powered-By "W3 Total Cache/0.9.6";
        add_header Vary "Accept-Encoding, Cookie";
        add_header Pragma "public";
        add_header Cache-Control "public";
        add_header Content-Encoding gzip;
    }

    specifically on this section

    
        types {
            text/xml xml_gzip
        }

    dont have ending ; that causing error. I have to manually edit it or edit the W3TC file.

    it should be

    
        types {
            text/xml xml_gzip;
        }

    Anyone else that also experience this?

    • This topic was modified 6 years, 9 months ago by muchmuch11.
    • This topic was modified 6 years, 9 months ago by muchmuch11.
Viewing 4 replies - 1 through 4 (of 4 total)
  • yeah same here, I need to manually add ;

    Hello,
    Any idea when this will be solved?
    One site I work with has this issue, when the plugin rewrite nginx.conf configuration file regularly then nginx server is being restarted automatically, nginx won’t start as it has configuration issue which means all sites in the same server are down.

    Thread Starter muchmuch11

    (@muchmuch11)

    Try to lock the file, so the W3TC can’t rewrite it. This’s what I do.

    I don’t know where to submit the bug because there’s no official github for this, but you can use this one, github fork https://github.com/szepeviktor/w3-total-cache-fixed

    If the bug also there, you can submit it and will be fixed on the fork.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello, First of all, sorry for the late response and the issue you are having
    Please make sure to update W3TC to the latest version as a lot of fixes have been applied including the fix for the issue you are having.
    If the issue is resolved after the update, please give us a feedback and we can close this topic.

    Best Regards,

    Marko

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘BUG on W3TC nginx config’ is closed to new replies.