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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > [solved] Allow VH to Inherit Server logFormat Setting

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2011, 01:42 PM
Atticus Atticus is offline
Member
 
Join Date: Nov 2010
Posts: 31
Default [solved] Allow VH to Inherit Server logFormat Setting

Hi there!

I am running Litespeed 4.1 Gold in a load balanced environment. While the load balancer supplies the remote client IP address in its own header, Litespeed logs using the default Remote Host header which is that of the load balancer. This makes the standard combined format logs pretty useless in way of tracking requests.

The solution for individual virtual servers is pretty simple. Change the logFormat and include the alternate HTTP header. This is not so simple if you need to update the XML files of 200+ virtual hosts.

Would it be possible to have an option to enable all virtual hosts to adopt the logFormat used by the server configuration?

Thank you!

Last edited by NiteWave; 04-20-2011 at 06:20 PM..
Reply With Quote
  #2  
Old 04-19-2011, 02:25 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
http://www.litespeedtech.com/docs/we...pInProxyHeader
Reply With Quote
  #3  
Old 04-19-2011, 02:48 PM
Atticus Atticus is offline
Member
 
Join Date: Nov 2010
Posts: 31
Except X-Forwarded-For is not the header presented making that not so helpful.
Reply With Quote
  #4  
Old 04-19-2011, 04:11 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
http://www.litespeedtech.com/support...hp/t-3896.html
Reply With Quote
  #5  
Old 04-19-2011, 04:28 PM
Atticus Atticus is offline
Member
 
Join Date: Nov 2010
Posts: 31
Set it on the web server side? Litespeed is the web server. Our load balancer uses a header other than X-Forwarded-For making the Client IP Header feature useless. We can't change that. Mind you, we don't use LSLB.

Aside from this one example of different client IP headers, being able to specify a logFormat that is shared by all VH would be supremely beneficial. The method you keep linking me to will not accomplish the need presented.
Reply With Quote
  #6  
Old 04-19-2011, 07:11 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
You can use LogFormat in Server level for VH sharing. X-Forwarded-For header is supported for Apache LogFormat compatibility.
Reply With Quote
  #7  
Old 04-19-2011, 08:39 PM
Atticus Atticus is offline
Member
 
Join Date: Nov 2010
Posts: 31
I set the server-level logFormat and it was not inherited by any of the VHs. Any idea why that may be?
Reply With Quote
  #8  
Old 04-20-2011, 11:57 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
What log format are you using?
Reply With Quote
  #9  
Old 04-20-2011, 12:18 PM
Atticus Atticus is offline
Member
 
Join Date: Nov 2010
Posts: 31
A slightly modified combined format - %{X-Client-IP}i - %h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"
Reply With Quote
  #10  
Old 04-20-2011, 03:22 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
pls try with 4.1. it should work.
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 07:53 AM.



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