Bug 50555 - Allow mod_status to show HTTP Host header instead of vhost name
Summary: Allow mod_status to show HTTP Host header instead of vhost name
Status: RESOLVED DUPLICATE of bug 45148
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_status (show other bugs)
Version: 2.2.17
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2011-01-06 16:04 UTC by David Abdemoulaie
Modified: 2011-06-18 13:36 UTC (History)
0 users

new field in the server-status (2.75 KB, patch)
2011-02-01 15:06 UTC, Eldar Gaynetdinov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Abdemoulaie 2011-01-06 16:04:12 UTC
I use mod_vhost_alias to manage my vhosts. I also enable mod_status
with "ExtendedStatus On" to monitor/track performance. However, the apache
scoreboard always uses the ServerName when showing the extended information. Thus multiple aliased vhosts show up under the same VHost. 

Is it possible to modify server/scoreboard.c to pull the "Host" header from the request, using that for the VHost?
Comment 1 Eldar Gaynetdinov 2011-02-01 15:06:07 UTC
Created attachment 26589 [details]
new field in the server-status

I've added new field to the server-status. It calls 'Hostname' which show you value of 'Host:' from each request.
But I don't know what others thinks about this idea.
Comment 2 Stefan Fritsch 2011-06-18 13:36:38 UTC

*** This bug has been marked as a duplicate of bug 45148 ***