• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Web Statistics throw 404 on Plone site

Schoelje

New Pleskian
Server: Debian 8.10‬
Plesk: Plesk Onyx 17.8.11 Update #5
Plone: 5.0.8
Note: mydomain is redacted.

I run a Plone site with a URL like this: mydomain.com:8080/Plone

I created an Apache RewriteRule so that users whould see the friendly URL: mydomain.com

If I want to see my web statistics for that domain it wants to show the following URL: mydomain.com/plesk-stat/webstat/ which returns a 404

Also, when I try this URL: mydomain.com:8080/Plone/plesk-stat/webstat/ it returns a 404.

How do I go from here?
 
I have found these conf files but don't know what to do with it:

/opt/psa/etc/awstats/awstats.mydomain.com-http.conf
/opt/psa/etc/awstats/awstats.mydomain.com-https.conf

Any ideas?
 
In /var/www/vhosts/system/mydomain.com/conf/httpd.conf I see this Alias:

Alias "/plesk-stat" "/var/www/vhosts/system/mydomain.com/statistics"
<Location /plesk-stat/>
Options +Indexes
</Location>
<Location /plesk-stat/logs/>
Require valid-user
</Location>
Alias /webstat /var/www/vhosts/system/mydomain.com/statistics/webstat
Alias /webstat-ssl /var/www/vhosts/system/mydomain.com/statistics/webstat-ssl
Alias /ftpstat /var/www/vhosts/system/mydomain.com/statistics/ftpstat
Alias /anon_ftpstat /var/www/vhosts/system/mydomain.com/statistics/anon_ftpstat
Alias /awstats-icon /usr/share/awstats/icon

I suspect that the Aliases and the RewriteRule don’t go well together:

RewriteRule ^/(.*) http://mydomain.com:8080/VirtualHostBase/https/%{HTTP_HOST}:443/Plone/VirtualHostRoot/$1 [P,L]

This is about the limit of my server knowledge. So, if somebody has some experience with aliases and rewriterules I'd very much appreciate your help.
 
Well, I couldn't solve this issue but I've found a workaround.

I created a sub-domain and in the "Apache & nginx Settings" of that sub-domain I added "Alias /webstat-ssl /var/www/vhosts/system/mydomain.com/statistics/webstat-ssl".
So, now I can watch the statistics from my Plone site on that sub-domain.
 
Back
Top