[SAC] Awstats of download.osgeo.org

Alex Mandel tech_dev at wildintellect.com
Wed May 25 15:46:31 EDT 2011


On 05/25/2011 09:42 AM, Sandro Santilli wrote:
> On Wed, May 25, 2011 at 09:12:39AM -0700, Alex Mandel wrote:
>> On 05/25/2011 06:27 AM, Sandro Santilli wrote:
> 
>>> This mail is ask who's in charge of the awstats config on 
>>> the download service and how those stats are meant to be 
>>> accessed / read.
> ...
>> I went through recently and brought them up to date.
>> See ticket http://trac.osgeo.org/osgeo/ticket/634 for more details.
>>
>> The files are indeed in /osgeo/download/logs but looks like you wouldn't
>> see that without sudo usage for some reason. Ah and the files are txt,
>> the perl script reads those to make the web pages on the fly ( I think).
>>
>> http://download.osgeo.org/cgi-bin/awstats.pl?config=www.download.osgeo.org
> 
> I think it would be nice to get that aliased as:
> 
>  http://download.osgeo.org/stats
> 
> It should be possible by fixing the config file to match the hostname.
> This already works if you map "www.download.osgeo.org" locally
> (DNS doesn't resolve it).
> 
> I haven't found any reference to "www" in the configuration files found
> under /etc/awstat but there is a -config=www.download.osgeo.org in the
> cron job running every 4 hours, and it's possibly the configuration file
> itself enforcing that name.
> 
> That said, it would be nice to get it to work w/out the need for explicily
> setting a 'config' parameter in query string, so it'd be aliasable.
> 
> A possible way to get there could be:
> 
>  (1) disable the cron job
>  (2) rename the configuration file to strip the 'www' part
>  (3) backup existing log dir
>  (4) rename all *www.download* logs to strip the 'www' part
>  (5) test http://download.osgeo.org/cgi-bin/awstats.pl
>  (6) if everything went fine (you can see all logs from 2007 to 2011)
>      then write a new cron job to use the new configuration
> 
> --strk; 
> 

I wrote the cronjob and the configuration file. At the time there didn't
appear to be any reason other than to use the standard notation I had
seen in use elsewhere. So yes if you change the cronjob and rename the
config file, and the awstats logs it will work just fine.

As I mentioned in IRC this seems fine to me if it makes the urls saner.
Course we could also just make redirects.

What I'm really curious about is if this name change works for all
domains on a given server assuming cgi-bin has been configured in the
vhost of each one so that say on projects:
grass.osgeo.org/stats/awstats.pl

Strk, if you want to help and there are no objections I'd be happy to
spend an hour or 2 this weekend taking care of this with you.

Thanks,
Alex




More information about the Sac mailing list