Current time: 11-26-2024, 07:58 PM Hello There, Guest! (LoginRegister)


Post Reply 
http://domain.tld/stats problem !!
Author Message
edeis Offline
Junior Member
*

Posts: 34
Joined: May 2010
Reputation: 0
Post: #7
RE: http://domain.tld/stats problem !!
I figured it out. This is how to get awstats to work on CentOS:

/etc/httpd/vhosts/01_awstats.conf


#
# AWStats Begin
#

#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]
RewriteRule ^/stats/(.*)$ http://localhost/stats/$1/ [R]
</IfModule>
Alias /awstatsclasses "/usr/share/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/share/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/"
ScriptAlias /awstats "/usr/share/awstats/wwwroot/cgi-bin/awstats.pl"

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

#</VirtualHost>

#
# AWStats End
#
(This post was last modified: 05-14-2010 09:51 AM by edeis.)
05-14-2010 09:50 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: http://domain.tld/stats problem !! - edeis - 05-14-2010 09:50 AM

Forum Jump:


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