Articles in this section

AWStats page does not display images on Plesk server: AH01630: client denied by server configuration

Plesk for Linux kb: technical ABT: Group A

Applicable to:

  • Plesk for Linux

Symptoms

  • AWStats page does not display images and graphs.

  • FireBug shows 404 Not Found error for all images.

  • The following errors could be found in /var/www/vhosts/system/example.com/logs/error_log:

    CONFIG_TEXT: [authz_core:error] [pid 6138] [client 203.0.113.2:1505] AH01630: client denied by server configuration: /usr/share/awstats/wwwroot/icon/browser/unknown.png, referer: https://example.com/plesk-stat/webstat/current/index.html
    [authz_core:error] [pid 6125] [client 203.0.113.2:1506] AH01630: client denied by server configuration: /usr/share/awstats/wwwroot/icon/browser/pdaphone.png, referer: https://example.com/plesk-stat/webstat/current/index.html

  • Fail2ban bans IP addresses that try to access files mentioned in errors.

Cause

The incorrect document directory path is configured for AWStats.


Custom Nginx directives preventing images from being served properly.

Resolution

  1. Connect to the server via SSH.

  2. Check the AWSTATS directives in the /etc/psa/psa.conf file and correct them as follows (if necessary):

    Debian/Ubuntu

    CONFIG_TEXT: AWSTATS_ETC_D /etc/awstats
    AWSTATS_BIN_D /usr/lib/cgi-bin
    AWSTATS_TOOLS_D /usr/share/awstats/tools
    AWSTATS_DOC_D /usr/share/awstats

    CentOS 7/8

    In Plesk version 18.0.45 and earlier:

    CONFIG_TEXT: AWSTATS_ETC_D /etc/awstats
    AWSTATS_BIN_D /var/www/cgi-bin/awstats
    AWSTATS_TOOLS_D /usr/share/awstats
    AWSTATS_DOC_D /var/www/html/awstats

    In version 18.0.46 and newer:

    CONFIG_TEXT: AWSTATS_ETC_D /etc/awstats
    AWSTATS_BIN_D /usr/share/awstats/wwwroot/cgi-bin
    AWSTATS_TOOLS_D /usr/share/awstats/tools
    AWSTATS_DOC_D /usr/share/awstats/wwwroot

  3. Run the following command to update AWStats configuration values in Plesk database:

    # plesk sbin packagemng -sdf

  4. Recreate configuration files for webserver:

    # plesk repair web -domains-only

    Note: Depending on the number of websites hosted on your server execution of this utility may take some time and Apache will be restarted.

    Note: If there are custom Nginx directives used, make sure that they do not prevent images from being served properly.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.