![]() |
[solved] Apache VHost GEOIP Country logging
Hi,
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: %{ENV:GEOIP_COUNTRY_CODE}, %{GEOIP_COUNTRY_CODE} and so on... but nothing seems to work. |
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?
|
Quote:
should be %{GEOIP_COUNTRY_CODE}e litespeed already support it, please confirm or test |
@Webizen: Yes. I want to log visitors country code at the end of each log entry.
@NiteWave: Thank you. Works fine. |
| All times are GMT -7. The time now is 11:13 AM. |