I have set up awstats on a test server and it is working successfully. Currently to access the stats the following address has to be used:
I would like to simplify this so that just using http://server/awstats
redirects to http://server/awstats/awstats.pl?config=config-name
I am running Ubuntu server 10.04 and the LAMP stack is set up from the option in the Ubuntu installer.
The only change I have tried to make to the modules from default is a2enmod rewrite, however the output of apache2ctl -l did not change after running this command.
I am looking at the file /etc/apache2/sites-availab
I think I need something like the following:
ScriptAlias /awstats/ /usr/local/awstats/wwwroot
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Allow from all
So not only do I want a particular perl script to be run, I want a particular config file passed to it, but I'm not sure I can do that with scriptalias as all I have managed to do so far is stop my original working path (http://server/awstats/awstats.pl?config=config-name
) from working at all.
Can anyone point me in the right direction please?