[AWFFULL] LogFormat in Apache for working GeoIP

Steve McInerney steve at stedee.id.au
Tue Dec 15 19:00:56 EST 2009


Hey Martin,

On Fri, 2009-12-11 at 06:50 +0100, Martin Džubák wrote:
> Hi there,
> GeoIP.dat file is in good path; in configuration file GeoIP is yes.
> But i still do not have country stats in AWFfull.
> 
> Then i realized that "combined" LogFormat in my Apache does not
> contain IP of remote client.
> 
> So, how should LogFormat in Apache look?
> 
> Now i have this:
> abc.sk - - [11/Dec/2009:05:39:48 +0000] "GET /favicon.ico HTTP/1.1"
> 404 183 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
> AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.30 Safari/532.5"

Ahh. That won't work with GeoIP unf. Well it will, but I disabled the
functionality as it's evil - it'll do a dns lookup for each and every
entry.

As is tho - the countries should be being set ok?

if you run awffull with -vv that should dump the various config settings
that you have.
The ones you really need are:

CountryGraph   yes
TopCountries    30

You may find it useful to do tricks like:
AssignToCountry  *.bigpond.com           au

to override some defaults - ie all .com being a generic .com domain.


HTH?
Cheers!
- Steve






More information about the AWFFull mailing list