Skip to content

Commit

Permalink
Merge pull request roadrunner2#10 from Argure/master
Browse files Browse the repository at this point in the history
Fix behaviour when using PROXY and HTTP/2
  • Loading branch information
roadrunner2 authored Mar 29, 2018
2 parents 84d3f3b + 5474ae7 commit 64cda87
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mod_proxy_protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,18 @@ static int pp_hook_pre_connection(conn_rec *c, void *csd)
pp_config *conf;
pp_conn_config *conn_conf;

/* Establish master config in slave connections, so that request
* processing finds it. */
if (c->master != NULL) {
conn_conf = ap_get_module_config(c->master->conn_config,
&proxy_protocol_module);
if (conn_conf) {
ap_set_module_config(c->conn_config, &proxy_protocol_module,
conn_conf);
}
return DECLINED;
}

/* check if we're enabled for this connection */
conf = ap_get_module_config(ap_server_conf->module_config,
&proxy_protocol_module);
Expand Down

0 comments on commit 64cda87

Please sign in to comment.