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

Re: Simple web log analysis for multiple sites?

On Mon, 19 Nov 2001, alexis bory wrote:

> > Just a question about mod rewrite, I'm doing the same, thing Alexis, but
> > have you managed to be able to point a http://toto.com (ie without the
> > www) ???
> Hi, if there is no special DNS record, there are 4 cases :

I have a toto.com IN A xx.xx.xx.xx for example.

I don't think I explained myself very well :-) It wasn't really a logs

> - it points on the same dir than www.toto.com , this case makes the requests
>   with and without "www" to be merged all together in the per-site log.
>   (just adding a line in the RewriteMap).

This is what I would like to happen, at the moment I get a 404.

I was wondering how you make http://toto.com become www.toto.com on the

Ah so you have a rewritemap??, is yours a dbm or text file? Do you mind
showing me where you put it in the httpd.conf? :-)

Is it..

toto.com 	www.toto.com



> - it points on redirect page so the later request become www.toto.com, this
>   case generate a separate log if you create a distinct dir, up to you to
>   have a report on it.(if you create a distinct dir, you need to add a line
>   in the RewriteMap, and a dir, and a html page) If we call this new dir
>   toto.redi , then it will be ignored by the script and there won't be any
>   new separate log.
> - it points on another web site.
> Look at the LogFormat directive with the {Host}i value in the begining.
> That's what we check when splitting the general access.log.
>    LogFormat "%{Host}i %h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
>    \"%{User-Agent}i\" %T %v" full
> We try to limit "special cases" as much as possible, and we host only web
> sites on wich we have entire control, it helps...
> alexis

Reply to: