From: Stefan Fritsch Date: Sun, 9 Jan 2011 23:07:52 +0000 (+0000) Subject: Display the local IP address in server-status. This can be useful for HTTPDs X-Git-Tag: 2.3.11~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b72b127ee4f7989bdabea4144036dd96014c435b;p=thirdparty%2Fapache%2Fhttpd.git Display the local IP address in server-status. This can be useful for HTTPDs behind load balancers. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1057050 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_status.c b/modules/generators/mod_status.c index 6a9b3ea3d08..4f917f37978 100644 --- a/modules/generators/mod_status.c +++ b/modules/generators/mod_status.c @@ -376,7 +376,8 @@ static int status_handler(request_rec *r) "\nApache Status\n\n", r); ap_rputs("

Apache Server Status for ", r); - ap_rvputs(r, ap_get_server_name(r), "

\n\n", NULL); + ap_rvputs(r, ap_get_server_name(r), " (", r->connection->local_ip, + ")\n\n", NULL); ap_rvputs(r, "
Server Version: ", ap_get_server_description(), "
\n", NULL); ap_rvputs(r, "
Server Built: ",