0

I'm using Apache Http server as a reverse proxy. I am interested in logging the upstream server IP in access and error logs. I'm looking for something like upstream_addr of Nginx web server.

  • Do you mean the downstream address? Upstream is toward your web application, downstream is toward the user agent. – Michael Hampton Jun 29 '20 at 17:37
  • @MichaelHampton I have figured out how to capture Client IPs. I want to capture upstream web app IP. – kgoutham93 Jun 30 '20 at 04:10
  • I looked through the [log format strings](https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#formats) and I don't see anything appropriate offhand. You probably should be using something else as a reverse proxy anyway. nginx as a reverse proxy can log this, for instance. – Michael Hampton Jun 30 '20 at 04:16
  • @MichaelHampton Yeah, there was no option out of the box. The reason for logging upstream IP is to identify stale DNS entries. But I am curious to know why you did you mention that I should look elsewhere _anyway_. – kgoutham93 Jun 30 '20 at 06:16

0 Answers0