[Resolved] Apache VHost GEOIP Country logging

Discussion in 'General' started by poirot, Jan 29, 2013.

Thread Status:
Not open for further replies.
  1. poirot

    poirot Member


    We've a DirectAdmin based LiteSpeed setup where for one vhost we need to create
    a custom LogFormat rule logging also the country code of every request from
    MaxMind's GEOIP module attached to LSWS natively.
    What's the correct enviroment variable to use withing httpd.conf to log such information?
    I've tried many different options:
    but nothing seems to work.
    Last edited by a moderator: Jan 31, 2013
  2. webizen

    webizen Well-Known Member

    pls be more specific to what you would like to achieve (better with an example). you mean have webserver output GEOIP related variable into the server log? can you do that in Apache?
  3. NiteWave

    NiteWave Administrator

    per http://httpd.apache.org/docs/2.2/mod/mod_log_config.html
    should be

    litespeed already support it, please confirm or test
  4. poirot

    poirot Member

    @Webizen: Yes. I want to log visitors country code at the end of each log entry.
    @NiteWave: Thank you. Works fine.
Thread Status:
Not open for further replies.

Share This Page