RE: mod_remoteip and ErrorLogFormat
"Gretton, Liam" <[email protected]>
| Newsgroups | gmane.comp.apache.user |
|---|---|
| Message-ID | <VI1PR06MB9047F1D7AF1BF8120BEB3B3BC6542@VI1PR06MB9047.eurprd06.prod.outlook.com> |
I am a bit of a muppet. My reason for using mod_remoteip was to be able to get client IPs into the error logs, but I've just discovered that the %i format specifier is available to ErrorLogFormat, so I can use X-Forwarded-For directly there. As mod_remoteip seems to remove X-Forwarded-For as well, that's likely to cause problems on its own for some of our older applications. So in this case I don't need to bother with mod_remoteip at all anyway.