[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] AWStats alias question



Hi,

I have installed AWStats on 3 servers (raq4)
The first, was a experience, but it worked fine.  So i take the decision to
install on 2 others.

The second and the third are also installed, but the alias don't want to
run. I receive a 'Cannot find server' / 'Page cannot be displayed' error.
But not the Cobalt 404 error page !?
This is if i use the alias : www.domain.com/awstats
If i try to use the awstats link, it work really fine...  :
http://www.domain.com/awstats-cgi/awstats.pl?config=www.domain.com
This work perfect.

So i think that the problem is the alias. Here is what i have inserted in my
/etc/httpd/conf/httpd.conf :

# This many seem a little tortured as a way to do this, but the
# quoting is hell.

$rewrite_rules =
'RewriteEngine On
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteCond %{DOCUMENT_ROOT}            !-d
RewriteRule .*
proto://servername:81/.cobalt/error/forbidden$
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteRule ^/admin/?$
proto://servername:81/.cobalt/sysManage/index$
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteRule ^/siteadmin/?$
proto://servername:81/.cobalt/siteManage/%1/i$
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteRule ^/personal/?$
proto://servername:81/.cobalt/personal/index.$
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteRule ^/.cobalt/(.+)              proto://servername:81/.cobalt/$1
[L,R]
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteRule ^/cgi-bin/.cobalt/(.+)
proto://servername:81/cgi-bin/.cobalt/$1 [L,R]
RewriteRule ^/awstats/?$
http://servername/awstats-cgi/awstats.pl?config=servername [$
';
----------------------------------------------------------------------------
--

and here is the link to a awstats.conf (near the </Perl> )

</Perl>

# AWSTATS - Include Control file -
include /etc/httpd/conf/awstats.conf
----------------------------------------------------------------------------
-

and finaly my /etc/httpd/conf/awstats.conf :

# icons and images dirs alias
Alias /awstats-img/ /home/awstats/icon/
# cgi-bin dir alias
Alias /awstats-cgi/ /home/awstats/
# awstats dir options
<Directory /home/awstats>
# allow .htaccess files
AllowOverride All
# the dir is a cgi-bin
Options ExecCGI
# perl scripts
AddHandler cgi-script .pl
</Directory>
----------------------------------------------------------------------------
--

Like i say, if i use the real link, it works fine. If i use the alias
/awstats/ it don't want to start. I tryed to restart httpd, modify the
awstats alias to /stats/, but nothing helps....
If i mistype, then i receive the Cobalt error page. ( if i have a awstats
alias, and try www.domaine.com/stats/ )
Anybody a idea ?
Thanks a lot.
Jean
jeanjean@xxxxxxx