Skip to main content

awstats has 1 in number of visits column

Comments

6 comments

  • screege
    Also none of the stats are working can anyone help?
    0
  • screege
    For anyone having this issue turned out it was nginx, now I must figure out how to correct it.
    0
  • cPanelMichael
    Hello :) Check to see if your system uses a custom vhost.local template in the /var/cpanel/templates/apache2 directory. The installation of Nginx may have commented out CustomLog entries in this template file which changes the way Apache VirtualHosts are written. I have seen some users have success with uncommenting the "CustomLog" entries in the vhost.local template and then rebuilding the Apache configuration file via /scripts/rebuildhttpdconf. Thank you.
    0
  • screege
    I have the following under vhost.default [% IF logstyle == 'combined' -%] [%- IF !enable_piped_logs || !supported.mod_log_config -%] CustomLog [% serverroot %]/domlogs/[% wildcard_safe(vhost.log_servername) %] combined [%- END %] [% ELSE %] TransferLog [% serverroot %]/domlogs/[% wildcard_safe(vhost.log_servername) %] [% END -%] [% IF supported.mod_log_config && supported.mod_logio && !enable_piped_logs -%] CustomLog [% serverroot %]/domlogs/[% wildcard_safe(vhost.log_servername) %]-bytes_log "%{%s}t %I .\n%{%s}t %O ." [% END -%] Regards
    0
  • cPanelMichael
    Did you check to see if the vhost.local file exists? Thanks.
    0
  • es2alna
    If it's from nginx and I doubt about that, then the fix is to install mod_rpaf. Check those links: [url=http://uksysadmin.wordpress.com/2011/06/27/mod_rpaf-extract-real-ip-from-behind-load-reverse-proxyload-balancer/]Mod_rpaf: Extract real-IP from behind reverse proxy/load balancer | System Administration and Architecture Blog [url=http://thejoyofstick.com/blog/2013/04/11/how-to-get-the-original-ip-address-in-apache2-behind-nginx/]How to get the original IP address in Apache2 behind Nginx " The Joy of Stick
    0

Please sign in to leave a comment.