Hi, all.
In server/scoreboard.c I changed the value of ws->vhost
from r->server->server_hostname to ap_get_server_name(r).
This helps me seeing the host name in a Name-based Virtual Host scenario,
with ExtendedStatus On.
A new directive could change the behavior at config time for those who need
it.
I'd love any feedback!
Massimiliano Pinto
IT Specialist
Banzai Consulting s.r.l.
Milan, ITALY
Here is the patch:
Index: httpd-trunk/server/scoreboard.c
===================================================================
--- httpd-trunk/server/scoreboard.c (revision 943417)
+++ httpd-trunk/server/scoreboard.c (working copy)
@@ -520,7 +520,7 @@
REMOTE_NOLOOKUP, NULL), sizeof(ws->client));
copy_request(ws->request, sizeof(ws->request), r);
if (r->server) {
- apr_cpystrn(ws->vhost, r->server->server_hostname,
+ apr_cpystrn(ws->vhost, ap_get_server_name(r),
sizeof(ws->vhost));
}
}