[tech] Apache on Mermaid
Bernard Blackham
bernard at blackham.com.au
Sun Feb 23 11:28:23 WST 2003
On Sat, Feb 22, 2003 at 01:05:40AM +0800, Davyd 'proXy' Madeley wrote:
> Can we fix the proxy on mooneye so that when it makes requests it logs
> the correct IP?
>
> I assume that this is possible.
Assuming mooneye is running squid and mermaid is using apache, in
mooneye's squid.conf: set "forwarded_for on".
Then on mermaid's httpd.conf, either make a new LogFormat for
"realips" then a new logfile ("realips.log"?), or alter the common
log format (probably not a good idea), where instead of %h for the
IP address, use %{X-Forwarded-For}i. That's the theory at least.
Will somebody do it or let me try it out? :)
B.
--
Bernard Blackham
bernard at blackham dot com dot au
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.ucc.gu.uwa.edu.au/pipermail/tech/attachments/20030223/83c18243/attachment.pgp
More information about the tech
mailing list