• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Webstat 404 with wordpress, php 5.6, FPM by nginx (and CF).

lala

New Pleskian
I remember the good times when Plesk Support Team actually fixes issues. I’m opening this forum because paid plesk support did not even try to fix our customer web statistics and they blame that it is an issue related to CloudFlare.

Just for reference: [Plesk #2062842] Web Statistics showing 404 (nginx,php-fpm and wordpress)

Currently we already tried all articles related to web statistics and we have no issues running them using apache, but they just don’t work with nginx. Sometimes we got 404 error and other “too many redirections”.

As you may know to get wordpress perm links working, we have to add to “Additional nginx directives” the following peace of code:

# BEHING CloudFlare
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 104.16.0.0/12;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 131.0.72.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 199.27.128.0/21;
set_real_ip_from 2400:cb00::/32;
set_real_ip_from 2606:4700::/32;
set_real_ip_from 2803:f800::/32;
set_real_ip_from 2405:b500::/32;
set_real_ip_from 2405:8100::/32;
set_real_ip_from 2c0f:f248::/32;
set_real_ip_from 2a06:98c0::/29;

# use any of the following two
real_ip_header CF-Connecting-IP;
# END CloudFlare

if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}

But we already tried removing them and stats just don’t work, we always get the 404 code.

When we wrote to support they just don’t fix anything and just tell us some things like:
“Currently there is no issue with AWStats utility in your server. ”
and

“The access logs are not getting updated because, in DNS, the website 'xxxx.com' is pointed to an IP address which does not belong to this server.

++++
[root@PCS1 ~]# dig +short A xxxx.com
104.27.171.243
104.27.170.243
++++


At this point we already tried everything. We even disabled cloudflare couple days to see if that helps and it did not work.

Other websites using apache in same server does not have any problem… Even using CloudFlare.

So what can I do? I already tried all free help (kb, googling, other forums) and paid support and I’m still not getting access to our customers web statics.

I have the same problem in 3 different dedicated servers, so it is not a single issue, anyone can reproduce this. Btw, I’m using last plesk 12 with all microupdates installed.
 
... they (Plesk Support) blame that it is an issue related to CloudFlare ... just tell us some things like:
“Currently there is no issue with AWStats utility in your server. ”
and
“The access logs are not getting updated because, in DNS, the website 'xxxx.com' is pointed to an IP address which does not belong to this server.”...

Maybe Plesk support is right?

Have you tried to set the preferred domain prefix to "none" to let the redirects decide how they wish to load the URL - with or without www.? Else, if a request is specifically demanding one version, it may end up in an endless loop of redirects to the other variant.

Have you tried to change the Apache config AllowOverride settings from "none" to "all"?
 
Back
Top