LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [solved] Apache VHost GEOIP Country logging

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2013, 09:39 AM
poirot poirot is offline
New Member
 
Join Date: Jan 2013
Posts: 2
Question [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.

Last edited by NiteWave; 01-30-2013 at 06:47 PM..
Reply With Quote
  #2  
Old 01-29-2013, 12:51 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
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?
Reply With Quote
  #3  
Old 01-29-2013, 06:34 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
Quote:
I've tried many different options:
%{ENV:GEOIP_COUNTRY_CODE}, %{GEOIP_COUNTRY_CODE} and so on...
but nothing seems to work.
per http://httpd.apache.org/docs/2.2/mod...og_config.html
should be
%{GEOIP_COUNTRY_CODE}e

litespeed already support it, please confirm or test
Reply With Quote
  #4  
Old 01-30-2013, 07:49 AM
poirot poirot is offline
New Member
 
Join Date: Jan 2013
Posts: 2
@Webizen: Yes. I want to log visitors country code at the end of each log entry.
@NiteWave: Thank you. Works fine.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:43 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.