Project

General

Profile

Actions

Bug #3360

closed

Apache reverse proxy-dev leaves / out of Backend Path

Added by Anton Bontes about 11 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
12/11/2013
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Affected Version:
All
Affected Plus Version:
Affected Architecture:
All

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";

Actions #2

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

Actions #3

Updated by Chris Buechler almost 9 years ago

  • Status changed from Feedback to Resolved
  • Target version deleted (2.1)
Actions

Also available in: Atom PDF