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:58:28 UTC

DO NOT REPLY [Bug 45148] The actual host of the request will be more helpful in mod_status, instead of the server name

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

--- Comment #2 from Emmanuel Hocdet <ma...@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