httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1057050 - /httpd/httpd/trunk/modules/generators/mod_status.c
Date Sun, 09 Jan 2011 23:07:53 GMT
Author: sf
Date: Sun Jan  9 23:07:52 2011
New Revision: 1057050

URL: http://svn.apache.org/viewvc?rev=1057050&view=rev
Log:
Display the local IP address in server-status. This can be useful for HTTPDs
behind load balancers.

Modified:
    httpd/httpd/trunk/modules/generators/mod_status.c

Modified: httpd/httpd/trunk/modules/generators/mod_status.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/generators/mod_status.c?rev=1057050&r1=1057049&r2=1057050&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/generators/mod_status.c (original)
+++ httpd/httpd/trunk/modules/generators/mod_status.c Sun Jan  9 23:07:52 2011
@@ -376,7 +376,8 @@ static int status_handler(request_rec *r
                  "<html><head>\n<title>Apache Status</title>\n</head><body>\n",
                  r);
         ap_rputs("<h1>Apache Server Status for ", r);
-        ap_rvputs(r, ap_get_server_name(r), "</h1>\n\n", NULL);
+        ap_rvputs(r, ap_get_server_name(r), " (", r->connection->local_ip,
+                  ")</h1>\n\n", NULL);
         ap_rvputs(r, "<dl><dt>Server Version: ",
                   ap_get_server_description(), "</dt>\n", NULL);
         ap_rvputs(r, "<dt>Server Built: ",



Mime
View raw message