httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cliff Woolley" <jwool...@wlu.edu>
Subject Re: [PATCH] vhost hostname in scoreboard...
Date Tue, 11 Jan 2000 07:28:08 GMT
>>> dot@dotat.at 01/09/00 15:53 PM >>>

>I'd prefer your patch if it attempted to respect the
>UseCanonicalName setting. However the whole thing is a
>bit messy because isn't possible to do this completely
>correctly owing to per-directory configuration.

Okay, I've found and corrected the flaw in my patch that should make you happy (and fix a
stupid occasional segfault, ugh).  Here's the new patch for http_main.c, which changes the
copy of r->hostname to a copy of the results of ap_get_server_name(r).  Does that work
for you?

=-)

--- src/main/http_main.c.010400 Tue Jan  4 15:22:30 2000
+++ src/main/http_main.c        Tue Jan  4 15:24:30 2000
@@ -2211,6 +2211,7 @@
                                       sizeof(ss->request));
            }
            ss->vhostrec =  r->server;
+            ap_cpystrn(ss->hostname, ap_get_server_name(r), sizeof(ss->hostname));
        }
     }
     if (status == SERVER_STARTING && r == NULL) {


Mime
View raw message