Current time: 12-01-2024, 01:24 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
не работает статистика
Author Message
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #8
RE: не работает статистика
/etc/httpd/vhosts/01_awstats.conf
Code:
#
# ispCP П‰ (OMEGA) a Virtual Hosting Control System
#
# @copyright    2006-2008 by ispCP | http://isp-control.net
# @version        SVN: $Id$
# @link            http://isp-control.net
# @author        ispCP Team
#
# @license
#   This program is free software; you can redistribute it and/or modify it under
#   the terms of the MPL General Public License as published by the Free Software
#   Foundation; either version 1.1 of the License, or (at your option) any later
#   version.
#   You should have received a copy of the MPL Mozilla Public License along with
#   this program; if not, write to the Open Source Initiative (OSI)
#   http://opensource.org | osi@opensource.org
#
################################################################################​
#
# AWStats Begin
#

Alias /awstatsicons "/var/www/awstats/icon/"


NameVirtualHost 127.0.0.1:80

<VirtualHost 127.0.0.1:80>

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule ^/stats/(.+)/$ http://localhost/awstats/?config=$1 [P]
        RewriteRule ^/stats/(.+)/awstats.pl(.*)$ http://localhost/awstats/$2 [P]
    </IfModule>

    ScriptAlias /awstats "/var/www/awstats/awstats.pl"
#    ScriptAlias /stats/ "/var/www/awstats/"

    <Directory "/var/www/awstats">
        AllowOverride none
        Options +ExecCGI
        DirectoryIndex awstats.pl
        Order allow,deny
        Allow from all
    </Directory>
#Alias /css/ /var/www/awstats/css/
#Alias /js/ /var/www/awstats/js/

</VirtualHost>

#
# AWStats End
#

И для каждого домена в ispcp.conf

Code:
# httpd awstats support BEGIN.

   ProxyRequests Off

   <Proxy *>
      Order deny,allow
      Allow from all
   </Proxy>

   ProxyPass            /stats    http://localhost/stats/veterinars.ru
   ProxyPassReverse        /stats    http://localhost/stats/veterinars.ru

    <Location /stats>
        AuthType Basic
        AuthName "Statistics for domain veterinars.ru"
        AuthUserFile /var/www/virtual/veterinars.ru/.htpasswd
        AuthGroupFile /var/www/virtual/veterinars.ru/.htgroup
        Require group statistics
    </Location>

   # httpd awstats support END.

Проверьте существует ли в папке домена файл .htgroup
Вообще, звщищённый пользователь для awstat в панели создан?
11-30-2009 02:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: не работает статистика - data-stream_ru - 11-30-2009 02:11 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)