You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2011/07/28 14:48:27 UTC

DO NOT REPLY [Bug 47591] show current HTTP_HOST in mod_status scoreboard

https://issues.apache.org/bugzilla/show_bug.cgi?id=47591

--- Comment #3 from manu@gandi.net 2011-07-28 12:48:27 UTC ---

why not use ap_get_server_name? And this function reflect the real virtualhost
configuration.

this simple patch work well for me:


--- apache2.3-trunk.orig/server/scoreboard.c    2011-07-21 11:13:55.000000000
+0000
+++ apache2.3-trunk/server/scoreboard.c    2011-07-27 10:12:13.000000000 +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