• Resolved dviolante

    (@dviolante)


    Hello, after adding this code from your plugin at my nginx config
    ## GZIP
    gzip_static on;

    ## CHARSET
    charset utf-8;

    ## INDEX LOCATION
    location / {
    error_page 404 405 = @nocache;

    if ( $query_string ) {
    return 405;
    }
    if ( $request_method = POST ) {
    return 405;
    }
    if ( $request_uri ~ “/wp-” ) {
    return 405;
    }
    if ( $http_cookie ~ (wp-postpass|wordpress_logged_in|comment_author)_ ) {
    return 405;
    }

    default_type text/html;
    add_header X-Powered-By Cachify;
    set $memcached_key $host$uri;
    memcached_pass localhost:11211;
    }

    ## NOCACHE LOCATION
    location @nocache {
    try_files $uri $uri/ /index.php?$args;
    }

    Im getting 404 errors in all of my site, just home is loaded, if i go to any other section / page i get 404 error.

    Any idea why is this?
    Thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘404 using memcached on Nginx’ is closed to new replies.