• W3TC breaks awstats in Nginx+PHP-FPM. When generated by w3tc nginx.conf is enabled, url https://losst.ru/vstats redirects to wordpress 404. After disabling this config file and restarting the nginx all works fine. My Nginx configuration was automaticly generated by VestaCP control panel:

    location /vstats/ {
            alias   /home/losst/web/losst.ru/stats/;
            include /home/losst/conf/web/losst.ru.auth;
    }
    
    location / {
            try_files $uri $uri/ /index.php?$args;
    
            location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
                expires     max;
            }
    
            location ~ [^/]\.php(/|$) {
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                if (!-f $document_root$fastcgi_script_name) {
                    return  404;
                }
    
                fastcgi_buffers 16 16k;
                fastcgi_buffer_size 32k;
    
                fastcgi_pass    127.0.0.1:9004;
                fastcgi_index   index.php;
                include         /etc/nginx/fastcgi_params;
            }
    }
    • This topic was modified 6 years, 3 months ago by Seriyyy95.
  • The topic ‘W3TC breaks awstats in nginx’ is closed to new replies.