Attached (textually) is a simple patch to add ports to vhosts in
mod_status for Apache 1.3.9.

%%  Christopher A. Bongaarts    %%  [EMAIL PROTECTED]
%%  ADCS - Internet Enterprise  %%  http://umn.edu/~cab
%%  University of Minnesota     %%  +1 (612) 625-1809
----snip----
*** mod_status.c.orig   Sat Jun  5 10:48:12 1999
--- mod_status.c        Tue Oct 26 13:34:13 1999
***************
*** 596,605 ****
                        ap_rputs("|", r);
                        format_byte_out(r, bytes);
                        ap_rputs(")\n", r);
!                       ap_rprintf(r, " <i>%s {%s}</i> <b>[%s]</b><br>\n\n",
                            score_record.client,
                            ap_escape_html(r->pool, score_record.request),
!                           vhost ? vhost->server_hostname : "(unavailable)");
                    }
                    else {              /* !no_table_report */
                        if (score_record.status == SERVER_DEAD)
--- 596,606 ----
                        ap_rputs("|", r);
                        format_byte_out(r, bytes);
                        ap_rputs(")\n", r);
!                       ap_rprintf(r, " <i>%s {%s}</i> <b>[%s:%d]</b><br>\n\n",
                            score_record.client,
                            ap_escape_html(r->pool, score_record.request),
!                           vhost ? vhost->server_hostname : "(unavailable)",
!                           vhost ? vhost->port : 0);
                    }
                    else {              /* !no_table_report */
                        if (score_record.status == SERVER_DEAD)
***************
*** 670,678 ****
                             "<td>?<td nowrap>?<td nowrap>..reading.. 
</tr>\n\n");
                        else
                            ap_rprintf(r,
!                            "<td>%s<td nowrap>%s<td nowrap>%s</tr>\n\n",
                             score_record.client,
                             vhost ? vhost->server_hostname : "(unavailable)",
                             ap_escape_html(r->pool, score_record.request));
                    }           /* no_table_report */
                }                       /* !short_report */
--- 671,680 ----
                             "<td>?<td nowrap>?<td nowrap>..reading.. 
</tr>\n\n");
                        else
                            ap_rprintf(r,
!                            "<td>%s<td nowrap>%s:%d<td nowrap>%s</tr>\n\n",
                             score_record.client,
                             vhost ? vhost->server_hostname : "(unavailable)",
+                            vhost ? vhost->port : 0,
                             ap_escape_html(r->pool, score_record.request));
                    }           /* no_table_report */
                }                       /* !short_report */

Reply via email to