Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2005 17:23:43 +0300
From:      Abu Khaled <khaled.abu@gmail.com>
To:        Remy de Ruysscher <remy@unix-asp.com>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: freebsd-isp Digest, Vol 117, Issue 4
Message-ID:  <a64c109e05061607235823d13a@mail.gmail.com>
In-Reply-To: <42B16C3A.8040008@unix-asp.com>
References:  <20050616120019.BFAEB16A421@hub.freebsd.org> <42B16C3A.8040008@unix-asp.com>

index | next in thread | previous in thread | raw e-mail

On 6/16/05, Remy de Ruysscher <remy@unix-asp.com> wrote:
> Hi there,
> 
> I'm struggeling with the setup of Reverse Proxy (Squid) for our
> serverfarm. Is it possible to preserve the orginal IP address
> in the logs on the destinator webserver (Apache access-logs). If not all
> connections are comming from the Squid Proxy.
> 
> If seen a number of patches for Squid, but haven't dived into it yet.
> Any tips on this matter are most welcome ;).
> 
> Regards,
> 
> Remy.
> 
> 
> 

I found this sometime ago while trying to configure my apache log files.

Check apache mod_log_config documentation.
http://httpd.apache.org/docs/mod/mod_log_config.html

Inserting X-Forwarded-For for apache access-logs might help.
# start
LogFormat "%v %{X-Forwarded-For}i %l %u %t \"%r\" %>s %b" common
CustomLog logs/access_log common
# end

-- 
Kind regards
Abu Khaled


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a64c109e05061607235823d13a>