diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2016-02-12 02:17:03 +0100 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2016-02-12 02:17:03 +0100 |
commit | 690c6105f9e66cb3a8a8b03344f64b2cf00d83e9 (patch) | |
tree | 3820b5b01d6510e9d6535733685443307fbadf09 /modules/metadata/mod_setenvif.c | |
parent | Introduce an ap_get_useragent_host() accessor to replace the old (diff) | |
download | apache2-690c6105f9e66cb3a8a8b03344f64b2cf00d83e9.tar.xz apache2-690c6105f9e66cb3a8a8b03344f64b2cf00d83e9.zip |
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
Diffstat (limited to 'modules/metadata/mod_setenvif.c')
-rw-r--r-- | modules/metadata/mod_setenvif.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |