Current time: 09-28-2024, 07:42 AM Hello There, Guest! (LoginRegister)


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

Posts: 349
Joined: Mar 2009
Reputation: 1
Post: #9
RE: не работает статистика
Code:
cat /etc/ispcp/apache/01_awstats.conf
#
# ispCP ω (OMEGA) a Virtual Hosting Control System
#
# @copyright    2006-2009 by ispCP | http://isp-control.net
# @version              SVN: $Id: 01_awstats.conf 1574 2009-03-05 05:57:05Z benedikt $
# @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 "{AWSTATS_WEB_DIR}/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/$1 [P]
        RewriteRule ^/stats/(.*)$ http://localhost/stats/$1/ [R]
    </IfModule>

    ScriptAlias /awstats "{AWSTATS_ENGINE_DIR}/awstats.pl"

    <Directory {AWSTATS_ENGINE_DIR}>
        AllowOverride none
        Options +ExecCGI
        DirectoryIndex awstats.pl
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>

#
# AWStats End
#
Code:
ProxyRequests Off

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

   ProxyPass                    /stats  http://localhost/stats/webhost.vfose.ru
   ProxyPassReverse             /stats  http://localhost/stats/webhost.vfose.ru

    <Location /stats>
        <IfModule mod_rewrite.c>
            RewriteEngine on
            RewriteRule ^(.+)\?config=([^\?\&]+)(.*) $1\?config=webhost.vfose.ru&$3 [NC,L]
        </IfModule>
        AuthType Basic
        AuthName "Statistics for domain webhost.vfose.ru"
        AuthUserFile /var/www/virtual/webhost.vfose.ru/.htpasswd
        AuthGroupFile /var/www/virtual/webhost.vfose.ru/.htgroup
        Require group statistics
    </Location>
вот и все что есть...насчет всего остального все в поряде.
(This post was last modified: 11-30-2009 04:45 AM by server801.)
11-30-2009 04:37 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: не работает статистика - server801 - 11-30-2009 04:37 AM

Forum Jump:


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