httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Massimiliano Pinto <>
Subject mod_scoreboard.c with HTTP_HOST in mod_status (extended)
Date Wed, 12 May 2010 10:59:46 GMT
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

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),

View raw message