Getting AWStats to work on /awstats/

3 posts / 0 new
Last post
#1 Wed, 01/27/2010 - 10:35
silid

Getting AWStats to work on /awstats/

To get AWStats to work at example.com/awstats/ rather than example.com/awstats/awstats.pl I replaced:

ScriptAlias /awstats /home/efy/cgi-bin

with:

Alias /awstats /home/efy/cgi-bin
<Location /awstats>
Options +ExecCGI
AddHandler cgi-script .pl
DirectoryIndex awstats.pl
</Location>

I have also found it useful to add

DirectoryIndex index.html

to the .htaccess file in Webalizer stats folders. This is in case I am overriding DirectoryIndex in ~/public_html.

Can anyone point me to the right place to get changes applied to all new virtual servers?

Thanks.

Wed, 01/27/2010 - 13:19
sgrayban

They already do this using the <files> directive.

But the .htaccess is a nice idea.

Wed, 01/27/2010 - 14:01 (Reply to #2)
silid

The files directive only applies auth to the file. What I want it to do is return awstats.pl as the directory index when addressing /awstats on my sever.

Topic locked