Current time: 11-26-2024, 03:10 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] AWStats on FreeBSD -> /awstats/ was not found
Author Message
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #1
Question [SOLVED] AWStats on FreeBSD -> /awstats/ was not found
Aloá Hé,

i spend my time to port ispCP to FreeBSD, looks good so far.
The current topic of the day is AWStats. The problem is that i´m unable to view the Stats and get this Error here:
Code:
Not Found

The requested URL /awstats/ was not found on this server.
Here ist the default.err:
Code:
[Tue Mar 09 07:51:03 2010] [notice] Apache/2.2.14 (FreeBSD) mod_ssl/2.2.14 OpenSSL/0.9.8k mod_fastcgi/2.4.6 configured -- resuming normal operations
[Tue Mar 09 07:51:03 2010] [error] [client 127.0.0.1] File does not exist: /usr/local/www/awstats/cgi-bin/awstats.pl/
[Tue Mar 09 07:51:04 2010] [error] [client 127.0.0.1] File does not exist: /usr/local/www/awstats/cgi-bin/awstats.pl/
The "awstats.pl" File itself exist:
Code:
matrix# ls -l /usr/local/www/awstats/cgi-bin/
total 714
-r-xr-xr-x  1 root  wheel    7126 Feb 23 00:16 awredir.pl*
-r--r--r--  1 root  wheel   60967 Feb 23 00:16 awstats.model.conf
-rw-r-xr-x  1 root  wheel  624760 Feb 23 00:16 awstats.pl*
drwxr-xr-x  5 root  wheel    1536 Feb 23 00:16 lang/
drwxr-xr-x  2 root  wheel     512 Feb 23 00:16 lib/
drwxr-xr-x  3 root  wheel     512 Feb 23 00:16 plugins/
The permissions looks ok for me, but of course the file "/usr/local/www/awstats/cgi-bin/awstats.pl/" does not exists.
Here is the Config:
Code:
#
# AWStats Begin
#

Alias /awstatsicons "/usr/local/www/data/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]
        RewriteRule ^/stats/(.*)$ http://localhost/stats/$1/ [R]
    </IfModule>

    ScriptAlias /awstats "/usr/local/www/awstats/cgi-bin/awstats.pl"

    <Directory /usr/local/www/awstats/cgi-bin>
        AllowOverride none
        Options +ExecCGI
        DirectoryIndex awstats.pl
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>

#
# AWStats End
#
As you can see there is no "/" on the end of the ScriptAlias ?!
I´m not sure if this is the Error...

The AWStasConfig for the Domain exists:
Code:
matrix# ls -l /usr/local/etc/awstats
total 60
-rw-r--r--  1 root  wheel  60785 Mar  4 14:58 awstats.matrix.my-domain.tld.conf
matrix#

Thanks & Greez
BeNe
(This post was last modified: 03-10-2010 04:52 PM by BeNe.)
03-09-2010 06:30 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
[SOLVED] AWStats on FreeBSD -> /awstats/ was not found - BeNe - 03-09-2010 06:30 PM

Forum Jump:


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