Enable X-Forward-For logging for Horizon vhost (Apache2)

Bug #1521570 reported by Adam Heczko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Undecided
Unassigned

Bug Description

Observed on:
Fuel release: "8.0"
  openstack_version: "2015.1.0-8.0"
  api: "1.0"
  build_number: "217"
  build_id: "217"

Problem description:
It was observed that Apache2 Horizon virtual host config doesn't log appropriate IP address.
It logs '%h' rather than '%{X-Forwarded-For}i' which results in logging HAProxy IP address rather than origin initializing HTTP request IP address.

Solution proposal:
Add '%{X-Forwarded-For}i' to Horizon's custom log, or better substitute '%h' with '%{X-Forwarded-For}i'

Revision history for this message
Adam Heczko (aheczko-mirantis) wrote :

Apologies for filling bug under wrong project.

Changed in launchpad:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.