We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 36590ea + 59d14bd commit 0e024b1Copy full SHA for 0e024b1
mod_rpaf.c
@@ -239,6 +239,10 @@ static int change_remote_ip(request_rec *r) {
239
(httpsvalue = apr_table_get(r->headers_in, "X-HTTPS"))) {
240
apr_table_set(r->subprocess_env, "HTTPS", apr_pstrdup(r->pool, httpsvalue));
241
r->server->server_scheme = cfg->https_scheme;
242
+ } else if ((httpsvalue = apr_table_get(r->headers_in, "X-Forwarded-Proto"))
243
+ && (strcmp(httpsvalue, cfg->https_scheme) == 0)) {
244
+ apr_table_set(r->subprocess_env, "HTTPS", apr_pstrdup(r->pool, "on"));
245
+ r->server->server_scheme = cfg->https_scheme;
246
} else {
247
r->server->server_scheme = cfg->orig_scheme;
248
}
0 commit comments