View | Details | Raw Unified | Return to bug 45148
Collapse All | Expand All

(-)server/scoreboard.c.orig (-1 / +4 lines)
Lines 425-430 Link Here
425
    int old_status;
425
    int old_status;
426
    worker_score *ws;
426
    worker_score *ws;
427
    process_score *ps;
427
    process_score *ps;
428
	char* host;
428
429
429
    if (child_num < 0) {
430
    if (child_num < 0) {
430
        return -1;
431
        return -1;
Lines 460-466 Link Here
460
            apr_cpystrn(ws->client, ap_get_remote_host(c, r->per_dir_config,
461
            apr_cpystrn(ws->client, ap_get_remote_host(c, r->per_dir_config,
461
                        REMOTE_NOLOOKUP, NULL), sizeof(ws->client));
462
                        REMOTE_NOLOOKUP, NULL), sizeof(ws->client));
462
            copy_request(ws->request, sizeof(ws->request), r);
463
            copy_request(ws->request, sizeof(ws->request), r);
463
            apr_cpystrn(ws->vhost, r->server->server_hostname,
464
			host = apr_table_get(r->headers_in, "Host");
465
			host = host? host : r->server->server_hostname;
466
            apr_cpystrn(ws->vhost, host,
464
                        sizeof(ws->vhost));
467
                        sizeof(ws->vhost));
465
        }
468
        }
466
    }
469
    }

Return to bug 45148