• Resolved phoenix13

    (@phoenix13)


    Hi,

    BIG ERROR for 404 with FFPC (BAD SEO Google) !

    Testing header with https://web-sniffer.net :

    – Without FFPC : 404 0K

    – With FFPC : BAD header return ! :

    Example for exanple.com/test404 :

    One click for exanple.com/test404 (verify by https://web-sniffer.net) : header 200 !!!
    Second click (just after, on button verify) : header 404.My ghost :

    In Better Security plugins (verify 404)… For Google, it’s 404 !!!!

    My config : Nginx+php-fpm+memcached+apc with Debian Wheezy (+Virtualmin/webmin)

    My ghost :

    fastcgi_read_timeout 60;
    server {
    	server_name example.com www.example.com;
    	listen XX.XXX.180.XX;
    	root /home/example/public_html;
    	index index.html index.htm index.php;
    try_files $uri $uri/ /index.php?$args; #Pretty url WordPress
    	access_log /var/log/virtualmin/example.com_access_log;
    	error_log /var/log/virtualmin/example.com_error_log;
    	fastcgi_param GATEWAY_INTERFACE CGI/1.1;
    	fastcgi_param SERVER_SOFTWARE nginx;
    	fastcgi_param QUERY_STRING $query_string;
    	fastcgi_param REQUEST_METHOD $request_method;
    	fastcgi_param CONTENT_TYPE $content_type;
    	fastcgi_param CONTENT_LENGTH $content_length;
    	fastcgi_param SCRIPT_FILENAME /home/example/public_html$fastcgi_script_name;
    	fastcgi_param SCRIPT_NAME $fastcgi_script_name;
    	fastcgi_param REQUEST_URI $request_uri;
    	fastcgi_param DOCUMENT_URI $document_uri;
    	fastcgi_param DOCUMENT_ROOT /home/example/public_html;
    	fastcgi_param SERVER_PROTOCOL $server_protocol;
    	fastcgi_param REMOTE_ADDR $remote_addr;
    	fastcgi_param REMOTE_PORT $remote_port;
    	fastcgi_param SERVER_ADDR $server_addr;
    	fastcgi_param SERVER_PORT $server_port;
    	fastcgi_param SERVER_NAME $server_name;
    	fastcgi_param HTTPS $https;
    
    	location ~ \.php$ {
    		try_files $uri =404;
    		#fastcgi_pass unix:/var/php-nginx/13830402164045.sock/socket;
                    fastcgi_pass unix:/var/run/php5-fpm.sock;
    	}
    
    	listen XX.XXX.180.XX:443 default_server ssl;
    	ssl_certificate /home/example/ssl.cert;
    	ssl_certificate_key /home/example/ssl.key;
    	rewrite_log off;
    
    # BEGIN Better WP Security
    
        set $susquery 0;
        set $rule_2 0;
        set $rule_3 0;
        rewrite ^wp-includes/(.*).php /not_found last;
        rewrite ^/wp-admin/includes(.*)$ /not_found last;
        if ($request_method ~* "^(TRACE|DELETE|TRACK)"){ return 403; }
        if ($args ~* "\.\./") { set $susquery 1; }
        if ($args ~* ".(bash|git|hg|log|svn|swp|cvs)") { set $susquery 1; }
        if ($args ~* "etc/passwd") { set $susquery 1; }
        if ($args ~* "boot.ini") { set $susquery 1; }
        if ($args ~* "ftp:") { set $susquery 1; }
        if ($args ~* "http:") { set $susquery 1; }
        if ($args ~* "https:") { set $susquery 1; }
        if ($args ~* "(<|%3C).*script.*(>|%3E)") { set $susquery 1; }
        if ($args ~* "mosConfig_[a-zA-Z_]{1,21}(=|%3D)") { set $susquery 1; }
        if ($args ~* "base64_encode") { set $susquery 1; }
        if ($args ~* "(%24&x)") { set $susquery 1; }
        if ($args ~* "(\[|\]|\(|\)|<|>|ê|\"|;|\?|\*|=$)"){ set $susquery 1; }
        if ($args ~* "("|'|<|>|\|{|||%24&x)"){ set $susquery 1; }
        if ($args ~* "(127.0)") { set $susquery 1; }
        if ($args ~* "(globals|encode|localhost|loopback)") { set $susquery 1; }
        if ($args ~* "(request|select|insert|concat|union|declare)") { set $susquery 1; }
        if ($http_cookie !~* "wordpress_logged_in_" ) {
            set $susquery 2$susquery;
            set $rule_2 1;
            set $rule_3 1;
        }
        if ($args !~ "^loggedout=true") { set $susquery 3$susquery; }
        if ($susquery = 4321) { return 403; }
        rewrite ^/login/?$ /wp-login.php?gzepb0rpx2crvkmdenbnb redirect;
        if ($rule_2 = 1) { rewrite ^/admin/?$ /wp-login.php?gzepb0rpx2crvkmdenbnb&redirect_to=/wp-admin/ redirect; }
        if ($rule_2 = 0) { rewrite ^/admin/?$ /wp-admin/?gzepb0rpx2crvkmdenbnb redirect; }
        rewrite ^/register/?$ /wp-login.php?gzepb0rpx2crvkmdenbnb&action=register redirect;
        if ($uri !~ "^(.*)admin-ajax.php") { set $rule_3 2$rule_3; }
        if ($http_referer !~* wp-admin ) { set $rule_3 3$rule_3; }
        if ($http_referer !~* wp-login.php ) { set $rule_3 4$rule_3; }
        if ($http_referer !~* login ) { set $rule_3 5$rule_3; }
        if ($http_referer !~* admin ) { set $rule_3 6$rule_3; }
        if ($http_referer !~* register ) { set $rule_3 7$rule_3; }
        if ($args !~ "^action=logout") { set $rule_3 8$rule_3; }
        if ($args !~ "^gzepb0rpx2crvkmdenbnb") { set $rule_3 9$rule_3; }
        if ($args !~ "^action=rp") { set $rule_3 0$rule_3; }
        if ($args !~ "^action=register") { set $rule_3 a$rule_3; }
        if ($args !~ "^action=postpass") { set $rule_3 b$rule_3; }
        if ($rule_3 = ba0987654321) {
            rewrite ^(.*/)?wp-login.php /not_found redirect;
            rewrite ^/wp-admin(.*)$ /not_found redirect;
        }
    # END Better WP Security
    
    # Cache client
    expires 30d;
    add_header Cache-Control public;
    
        # set a nice expire for assets
        location ~* "^.+\.(jpeg|gif|css|png|js|ico|pdf|zip|tar|tgz|mp3|wav|swf)$" {
            access_log off;
            expires    max;
            add_header Cache-Control public;
                ##  fastcgi_hide_header Set-Cookie;
        }
    
    # gzip
    gzip            on;
    gzip_disable    "MSIE [1-6].(?!.*SV1)";
    gzip_vary       on;
    gzip_comp_level 6;
    gzip_proxied    any;
    gzip_buffers    16 8k;
    gzip_types text/plain text/html text/css application/json  application/x-javascript text/xml application/xml application/xml+rss  text/javascript;
    
    }

    https://www.ads-software.com/plugins/wp-ffpc/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter phoenix13

    (@phoenix13)

    erratum : My Vhost Nginx, not my ghost ??

    Plugin Author petermolnar

    (@cadeyrn)

    This should not happen, I will take a look at it in the next version what’s causing it.

    Thread Starter phoenix13

    (@phoenix13)

    Why not now ?

    Plugin Author petermolnar

    (@cadeyrn)

    Because I have a daytime job to make a living out from; wp-ffpc is a hobby.
    Feel free to fork and contribute if it’s that important. https://github.com/petermolnar/wp-ffpc

    Thread Starter phoenix13

    (@phoenix13)

    And with Paypal donation ? ??

    Plugin Author petermolnar

    (@cadeyrn)

    Thank you very much for the offer. I already have enough requests to prepare a new release, but I’m truly short on free time to work on this project; that was one of the reasons to move it to github that might encourage people to contribute.
    I’ll do my best, but I cannot guarantee.

    Thread Starter phoenix13

    (@phoenix13)

    For “One click for exanple.com/test404 (verify by https://web-sniffer.net) : header 200 !!!
    Second click (just after, on button verify) : header 404.”

    W3TC says about :
    “Cache 404 (not found) pages
    Reduce server load by caching 404 pages. If the disk enhanced method of disk caching is used, 404 pages will be returned with a 200 response code. Use at your own risk.”

    1- FFPC must fix it. How fix it myself now please ?

    2- Otherwise, for Google 404, if anyone reading this post and it provides a solution .. ??

    Thanks.

    Plugin Author petermolnar

    (@cadeyrn)

    I’ve committed a fix. It was caused by a different issue I thought to be and was easier to fix than originally estimated.

    Unfortunately the release management of WordPress is still ugly and I have no clue when ( if ever ) the new version will show up on the official page. Until that, please use the svn repository: ( technically you only need to change the wp-ffpc-acache.php file) https://plugins.svn.www.ads-software.com/wp-ffpc/tags/1.2.2/

    Thread Starter phoenix13

    (@phoenix13)

    Great ! Perfect ! It’s works ??

    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Bad SEO Google 404 with FFPC’ is closed to new replies.