From 690c6105f9e66cb3a8a8b03344f64b2cf00d83e9 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Fri, 12 Feb 2016 01:17:03 +0000 Subject: hostname: Test and log useragent_host per-request across various modules, including the scoreboard, expression and rewrite engines, setenvif, authz_host, access_compat, custom logging, ssl and REMOTE_HOST variables. PR55348 [William Rowe] This is the complete change set which applies cleanly to 2.4.x as well, the server/scoreboard.c will follow, which does not apply due to drift. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1729930 13f79535-47bb-0310-9956-ffa450edef68 --- modules/metadata/mod_setenvif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/metadata/mod_setenvif.c') diff --git a/modules/metadata/mod_setenvif.c b/modules/metadata/mod_setenvif.c index db58b601f3..c56ef50318 100644 --- a/modules/metadata/mod_setenvif.c +++ b/modules/metadata/mod_setenvif.c @@ -531,8 +531,7 @@ static int match_headers(request_rec *r) val = r->connection->local_ip; break; case SPECIAL_REMOTE_HOST: - val = ap_get_remote_host(r->connection, r->per_dir_config, - REMOTE_NAME, NULL); + val = ap_get_useragent_host(r, REMOTE_NAME, NULL); break; case SPECIAL_REQUEST_URI: val = r->uri; -- cgit v1.2.3