httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45148] The actual host of the request will be more helpful in mod_status, instead of the server name
Date Thu, 28 Jul 2011 12:58:28 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45148

--- Comment #2 from Emmanuel Hocdet <manu@gandi.net> 2011-07-28 12:58:28 UTC ---

in 2.3-head this patch work well for me.
ap_get_server_name reflect the real virtualhost configuration

--- apache2.3-trunk.orig/server/scoreboard.c    2011-07-21 11:13:55 +0000
+++ apache2.3-trunk/server/scoreboard.c    2011-07-27 10:12:13 +0000
@@ -492,7 +492,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));
             }
         }

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message