projects
/
apache
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0235dbf
)
Display the local IP address in server-status. This can be useful for HTTPDs
author
Stefan Fritsch
<sf@apache.org>
Sun, 9 Jan 2011 23:07:52 +0000
(23:07 +0000)
committer
Stefan Fritsch
<sf@apache.org>
Sun, 9 Jan 2011 23:07:52 +0000
(23:07 +0000)
behind load balancers.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1057050
13f79535
-47bb-0310-9956-
ffa450edef68
modules/generators/mod_status.c
patch
|
blob
|
history
diff --git
a/modules/generators/mod_status.c
b/modules/generators/mod_status.c
index 6a9b3ea3d085e46923e9537d8212d6f1dad960b9..4f917f3797833eed3d0388a797d15982f25206df 100644
(file)
--- a/
modules/generators/mod_status.c
+++ b/
modules/generators/mod_status.c
@@
-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: ",