Bug #3360
closedApache reverse proxy-dev leaves / out of Backend Path
100%
Description
When configuring locations the "backend path" text says "Backend redirect path. Leave blank to use / "
But if left blank this is not done in the config file creation
Lines 587 and 588 in apache_mod_security.inc should have the same check as line 586
This line checks if there is a 'sitepath' if not add '/'
586 $vh_config.=" <Location ".($backend['sitepath'] ? $backend['sitepath'] : "/").">\n";
So the following lines should be changed
587-- $vh_config.=" ProxyPass balancer://{$backend['balancer']}{$backend['backendpath']}\n";
588-- $vh_config.=" ProxyPassReverse balancer://{$backend['balancer']}{$backend['backendpath']}\n";
To -->
587++ $vh_config.=" ProxyPass balancer://{$backend['balancer']}".($backend['backendpath'] ? $backend['backendpath'] : "/")."\n";
588++ $vh_config.=" ProxyPassReverse balancer://{$backend['balancer']".($backend[backendpath'] ? $backend['backendpath'] : "/")."\n";
Updated by Kill Bill over 9 years ago
Updated by Renato Botelho over 9 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Pull request has been merged
Updated by Chris Buechler almost 9 years ago
- Status changed from Feedback to Resolved
- Target version deleted (
2.1)